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

SamboyCoding / Cpp2IL / 15032750078

14 May 2025 11:00PM UTC coverage: 34.393% (-0.4%) from 34.826%
15032750078

Pull #451

github

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

1786 of 6584 branches covered (27.13%)

Branch coverage included in aggregate %.

140 of 187 new or added lines in 27 files covered. (74.87%)

53 existing lines in 2 files now uncovered.

4167 of 10725 relevant lines covered (38.85%)

189623.56 hits per line

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

38.89
/Cpp2IL.Core/Model/Contexts/InjectedPropertyAnalysisContext.cs
1
using System.Reflection;
2

3
namespace Cpp2IL.Core.Model.Contexts;
4

5
public class InjectedPropertyAnalysisContext : PropertyAnalysisContext
6
{
7
    public override string DefaultName { get; }
1✔
NEW
8
    public override PropertyAttributes PropertyAttributes { get; }
×
9
    public override TypeAnalysisContext PropertyTypeContext { get; }
1✔
10
    public override bool IsStatic
11
    {
12
        get
13
        {
NEW
14
            if (Getter is not null)
×
NEW
15
                return Getter.IsStatic;
×
NEW
16
            if (Setter is not null)
×
NEW
17
                return Setter.IsStatic;
×
NEW
18
            throw new("Property has no methods");
×
19
        }
20
    }
NEW
21
    protected override bool IsInjected => true;
×
22

23
    public InjectedPropertyAnalysisContext(
24
        string name,
25
        TypeAnalysisContext propertyType,
26
        MethodAnalysisContext? getter,
27
        MethodAnalysisContext? setter,
28
        PropertyAttributes propertyAttributes,
29
        TypeAnalysisContext parent) : base(getter, setter, parent)
42✔
30
    {
31
        DefaultName = name;
42✔
32
        PropertyTypeContext = propertyType;
42✔
33
        PropertyAttributes = propertyAttributes;
42✔
34
    }
42✔
35
}
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