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

SamboyCoding / Cpp2IL / 14963447019

12 May 2025 03:55AM UTC coverage: 34.803% (-0.02%) from 34.826%
14963447019

Pull #447

github

web-flow
Merge 83a563e34 into e93c0fecc
Pull Request #447: Implement some missing property overrides on injected methods

1808 of 6490 branches covered (27.86%)

Branch coverage included in aggregate %.

1 of 8 new or added lines in 4 files covered. (12.5%)

3 existing lines in 3 files now uncovered.

4158 of 10652 relevant lines covered (39.03%)

161170.59 hits per line

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

56.0
/Cpp2IL.Core/Model/Contexts/InjectedMethodAnalysisContext.cs
1
using System.Reflection;
2
using LibCpp2IL.BinaryStructures;
3

4
namespace Cpp2IL.Core.Model.Contexts;
5

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

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

12
    public override bool IsStatic { get; }
×
13

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

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

NEW
20
    protected override int CustomAttributeIndex => -1;
×
21

22
    public InjectedMethodAnalysisContext(TypeAnalysisContext parent, string name, bool isStatic, TypeAnalysisContext returnType, MethodAttributes attributes, TypeAnalysisContext[] injectedParameterTypes, string[]? injectedParameterNames = null) : base(null, parent)
126✔
23
    {
24
        DefaultName = name;
126✔
25
        InjectedReturnType = returnType;
126✔
26
        IsStatic = isStatic;
126✔
27
        Attributes = attributes;
126✔
28

29
        for (var i = 0; i < injectedParameterTypes.Length; i++)
420✔
30
        {
31
            var injectedParameterType = injectedParameterTypes[i];
84✔
32
            var injectedParameterName = injectedParameterNames?[i];
84!
33

34
            Parameters.Add(new InjectedParameterAnalysisContext(injectedParameterName, injectedParameterType, i, this));
84✔
35
        }
36
    }
126✔
37
}
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