< Summary

Information
Class: Trailblazer.Pathing.PreparedNavigationOverlay
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Map/Operations/PreparedNavigationOverlay.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 25
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%
get_DescriptorBytes()100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Map/Operations/PreparedNavigationOverlay.cs

#LineLine coverage
 1//=======================================================================
 2// PreparedNavigationOverlay.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>Wraps an immutable validated overlay transaction before deterministic admission.</summary>
 11public sealed class PreparedNavigationOverlay
 12{
 13    /// <summary>Creates an inert prepared-overlay descriptor from an immutable transaction.</summary>
 30114    public PreparedNavigationOverlay(NavigationOverlayTransaction transaction)
 15    {
 30116        SwiftThrowHelper.ThrowIfNull(transaction, nameof(transaction));
 30117        Transaction = transaction;
 30118    }
 19
 20    /// <summary>Gets the immutable overlay transaction.</summary>
 21    public NavigationOverlayTransaction Transaction { get; }
 22
 23    /// <summary>Gets the deterministic descriptor-byte reservation.</summary>
 85824    public long DescriptorBytes => Transaction.EstimatedDescriptorBytes;
 25}