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

SamboyCoding / Cpp2IL / 15008863987

13 May 2025 11:38PM UTC coverage: 34.826%. Remained the same
15008863987

Pull #450

github

web-flow
Merge cc580ae2f into e93c0fecc
Pull Request #450: Update IsRef property in InjectedParameterAnalysisContext

1808 of 6486 branches covered (27.88%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

2 existing lines in 1 file now uncovered.

4158 of 10645 relevant lines covered (39.06%)

161276.57 hits per line

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

50.0
/Cpp2IL.Core/Model/Contexts/InjectedParameterAnalysisContext.cs
1
using System.Reflection;
2
using Cpp2IL.Core.Utils;
3
using LibCpp2IL.BinaryStructures;
4

5
namespace Cpp2IL.Core.Model.Contexts;
6

7
public class InjectedParameterAnalysisContext : ParameterAnalysisContext
8
{
9
    public override TypeAnalysisContext ParameterTypeContext { get; }
2✔
10

NEW
11
    public override bool IsRef => ParameterTypeContext is ByRefTypeAnalysisContext;
×
12

13
    public override ParameterAttributes ParameterAttributes => ParameterAttributes.None;
×
14
    
UNCOV
15
    protected override bool IsInjected => true;
×
16

17
    public InjectedParameterAnalysisContext(string? name, Il2CppType type, int paramIndex, MethodAnalysisContext declaringMethod)
18
        : this(name, declaringMethod.DeclaringType!.DeclaringAssembly.ResolveIl2CppType(type) ?? throw new($"Type {type} could not be resolved."), paramIndex, declaringMethod)
×
19
    {
UNCOV
20
    }
×
21

22
    public InjectedParameterAnalysisContext(string? name, TypeAnalysisContext typeContext, int paramIndex, MethodAnalysisContext declaringMethod) : base(null, paramIndex, declaringMethod)
107,254✔
23
    {
24
        OverrideName = name ?? $"param_{paramIndex}";
107,254✔
25
        ParameterTypeContext = typeContext;
107,254✔
26
    }
107,254✔
27
}
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