< Summary

Information
Class: Trailblazer.Pathing.NavigationImmediateRayWorkspace
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Search/Ray/NavigationImmediateRayWorkspace.cs
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 36
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Search/Ray/NavigationImmediateRayWorkspace.cs

#LineLine coverage
 1//=======================================================================
 2// NavigationImmediateRayWorkspace.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2024-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8namespace Trailblazer.Pathing;
 9
 10/// <summary>Serializes synchronous callers over one fixed navigation-ray workspace.</summary>
 11internal sealed class NavigationImmediateRayWorkspace
 12{
 119213    internal NavigationImmediateRayWorkspace(
 119214        int mapCapacity,
 119215        int pageCapacity,
 119216        int componentCapacity,
 119217        int coveredAddressCapacity,
 119218        int traceIntervalCapacity)
 19    {
 119220        SyncRoot = new object();
 119221        var workspace = new NavigationRayWorkspace(
 119222            mapCapacity,
 119223            pageCapacity,
 119224            componentCapacity,
 119225            coveredAddressCapacity,
 119226            traceIntervalCapacity);
 119227        RayWork = new NavigationRayWork(workspace);
 119228        WorkMeter = new NavigationWorkMeter(default);
 119229    }
 30
 31    internal object SyncRoot { get; }
 32
 33    internal NavigationRayWork RayWork { get; }
 34
 35    internal NavigationWorkMeter WorkMeter { get; }
 36}