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

SamboyCoding / Cpp2IL / 15052236685

15 May 2025 06:14PM UTC coverage: 34.038% (-0.4%) from 34.453%
15052236685

push

github

SamboyCoding
Implement requested change

1774 of 6622 branches covered (26.79%)

Branch coverage included in aggregate %.

1 of 2 new or added lines in 1 file covered. (50.0%)

320 existing lines in 15 files now uncovered.

4155 of 10797 relevant lines covered (38.48%)

188267.61 hits per line

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

53.85
/Cpp2IL.Core/Model/Contexts/InjectedMethodAnalysisContext.cs
1
using System.Collections.Generic;
2
using System.Reflection;
3
using LibCpp2IL.BinaryStructures;
4

5
namespace Cpp2IL.Core.Model.Contexts;
6

7
public class InjectedMethodAnalysisContext : MethodAnalysisContext
8
{
UNCOV
9
    public override ulong UnderlyingPointer => 0;
×
10

11
    public override string DefaultName { get; }
3✔
12

UNCOV
13
    public override bool IsStatic => Attributes.HasFlag(MethodAttributes.Static);
×
14

UNCOV
15
    public override bool IsVoid => InjectedReturnType?.Type is Il2CppTypeEnum.IL2CPP_TYPE_VOID;
×
16

UNCOV
17
    public override MethodAttributes Attributes { get; }
×
18
    
UNCOV
19
    protected override bool IsInjected => true;
×
20

UNCOV
21
    protected override int CustomAttributeIndex => -1;
×
22

NEW
23
    public override IEnumerable<MethodAnalysisContext> Overrides => OverridesList;
×
24
    public List<MethodAnalysisContext> OverridesList { get; } = [];
252✔
25

26
    public InjectedMethodAnalysisContext(TypeAnalysisContext parent, string name, TypeAnalysisContext returnType, MethodAttributes attributes, TypeAnalysisContext[] injectedParameterTypes, string[]? injectedParameterNames = null) : base(null, parent)
252✔
27
    {
28
        DefaultName = name;
252✔
29
        InjectedReturnType = returnType;
252✔
30
        Attributes = attributes;
252✔
31

32
        for (var i = 0; i < injectedParameterTypes.Length; i++)
672✔
33
        {
34
            var injectedParameterType = injectedParameterTypes[i];
84✔
35
            var injectedParameterName = injectedParameterNames?[i];
84!
36

37
            Parameters.Add(new InjectedParameterAnalysisContext(injectedParameterName, injectedParameterType, i, this));
84✔
38
        }
39
    }
252✔
40
}
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

© 2026 Coveralls, Inc