• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SamboyCoding / Cpp2IL / 15036624631

15 May 2025 04:28AM UTC coverage: 34.402% (-0.4%) from 34.826%
15036624631

Pull #451

github

web-flow
Merge 0c4fe319b into e93c0fecc
Pull Request #451: Support injecting anything

1787 of 6586 branches covered (27.13%)

Branch coverage included in aggregate %.

146 of 194 new or added lines in 27 files covered. (75.26%)

53 existing lines in 2 files now uncovered.

4169 of 10727 relevant lines covered (38.86%)

189550.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.22
/Cpp2IL.Core/Model/Contexts/InjectedMethodAnalysisContext.cs
1
using System.Reflection;
2

3
namespace Cpp2IL.Core.Model.Contexts;
4

5
public class InjectedMethodAnalysisContext : MethodAnalysisContext
6
{
7
    public override ulong UnderlyingPointer => 0;
×
8

9
    public override string DefaultName { get; }
3✔
10

NEW
11
    public override bool IsStatic => Attributes.HasFlag(MethodAttributes.Static);
×
12

13
    public override MethodAttributes Attributes { get; }
×
14
    
15
    protected override bool IsInjected => true;
×
16

17
    public InjectedMethodAnalysisContext(TypeAnalysisContext parent, string name, TypeAnalysisContext returnType, MethodAttributes attributes, TypeAnalysisContext[] injectedParameterTypes, string[]? injectedParameterNames = null) : base(null, parent)
252✔
18
    {
19
        DefaultName = name;
252✔
20
        InjectedReturnType = returnType;
252✔
21
        Attributes = attributes;
252✔
22

23
        for (var i = 0; i < injectedParameterTypes.Length; i++)
672✔
24
        {
25
            var injectedParameterType = injectedParameterTypes[i];
84✔
26
            var injectedParameterName = injectedParameterNames?[i];
84!
27

28
            Parameters.Add(new InjectedParameterAnalysisContext(injectedParameterName, injectedParameterType, i, this));
84✔
29
        }
30
    }
252✔
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc