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

SamboyCoding / Cpp2IL / 27877222854

20 Jun 2026 04:32PM UTC coverage: 34.68% (+0.4%) from 34.235%
27877222854

push

github

SamboyCoding
Lib: Bump test downloader timeout to 5 minutes

2437 of 8269 branches covered (29.47%)

Branch coverage included in aggregate %.

4852 of 12749 relevant lines covered (38.06%)

187225.41 hits per line

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

0.0
/Cpp2IL.Core/Model/Contexts/NativeMethodAnalysisContext.cs
1
using System;
2
using System.Reflection;
3

4
namespace Cpp2IL.Core.Model.Contexts;
5

6
public sealed class NativeMethodAnalysisContext : MethodAnalysisContext
7
{
8
    public override ulong UnderlyingPointer { get; }
×
9

10
    public override string DefaultName { get; }
×
11

12
    protected override bool IsInjected => true;
×
13

14
    public override TypeAnalysisContext DefaultReturnType => isVoid ? AppContext.SystemTypes.SystemVoidType : AppContext.SystemTypes.SystemObjectType;
×
15

16
    public override MethodAttributes DefaultAttributes => MethodAttributes.Public | MethodAttributes.Static | MethodAttributes.HideBySig;
×
17

18
    public override MethodImplAttributes DefaultImplAttributes => MethodImplAttributes.Managed;
×
19

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

22
    private readonly bool isVoid;
23

24
    public NativeMethodAnalysisContext(TypeAnalysisContext parent, ulong address, bool voidReturn) : base(null, parent)
×
25
    {
26
        if (address == 0)
×
27
            throw new ArgumentOutOfRangeException(nameof(address));
×
28

29
        isVoid = voidReturn;
×
30
        UnderlyingPointer = address;
×
31
        if (AppContext.Binary.TryGetExportedFunctionName(UnderlyingPointer, out var name))
×
32
        {
33
            DefaultName = name;
×
34
        }
35
        else
36
        {
37
            DefaultName = $"NativeMethod_0x{UnderlyingPointer:X}";
×
38
        }
39
    }
×
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