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

SamboyCoding / Cpp2IL / 15172415984

21 May 2025 08:56PM UTC coverage: 34.294% (+0.2%) from 34.062%
15172415984

Pull #462

github

web-flow
Merge 483c13920 into 5807d2b6c
Pull Request #462: Support overriding member types

1801 of 6644 branches covered (27.11%)

Branch coverage included in aggregate %.

128 of 232 new or added lines in 35 files covered. (55.17%)

5 existing lines in 5 files now uncovered.

4199 of 10852 relevant lines covered (38.69%)

186271.78 hits per line

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

31.82
/Cpp2IL.Core/Model/Contexts/InjectedEventAnalysisContext.cs
1
using System.Reflection;
2

3
namespace Cpp2IL.Core.Model.Contexts;
4

5
public class InjectedEventAnalysisContext : EventAnalysisContext
6
{
7
    public override string DefaultName { get; }
1✔
NEW
8
    public override EventAttributes DefaultAttributes { get; }
×
9
    public override TypeAnalysisContext DefaultEventType { get; }
1✔
10
    public override bool IsStatic
11
    {
12
        get
13
        {
14
            if (Adder is not null)
×
15
                return Adder.IsStatic;
×
16
            if (Remover is not null)
×
17
                return Remover.IsStatic;
×
18
            if (Invoker is not null)
×
19
                return Invoker.IsStatic;
×
20

21
            throw new("Event has no methods");
×
22
        }
23
    }
24
    protected override bool IsInjected => true;
×
25

26
    public InjectedEventAnalysisContext(
27
        string name,
28
        TypeAnalysisContext eventType,
29
        MethodAnalysisContext? adder,
30
        MethodAnalysisContext? remover,
31
        MethodAnalysisContext? invoker,
32
        EventAttributes eventAttributes,
33
        TypeAnalysisContext parent) : base(adder, remover, invoker, parent)
42✔
34
    {
35
        DefaultName = name;
42✔
36
        DefaultEventType = eventType;
42✔
37
        DefaultAttributes = eventAttributes;
42✔
38
    }
42✔
39
}
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