< Summary

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

#LineLine coverage
 1//=======================================================================
 2// NavigationMapRemoveOperation.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>Describes one deterministic map-and-overlay removal operation.</summary>
 11public readonly struct NavigationMapRemoveOperation
 12{
 13    /// <summary>Initializes an immutable map-removal operation and its pending receipt.</summary>
 14    public NavigationMapRemoveOperation(string mapId, long operationSequence, int effectiveFrame)
 15    {
 2216        SwiftThrowHelper.ThrowIfNull(mapId, nameof(mapId));
 2217        SwiftThrowHelper.ThrowIfArgument(string.IsNullOrWhiteSpace(mapId), nameof(mapId));
 2218        NavigationOperationValidation.ValidateSchedule(operationSequence, effectiveFrame);
 19
 2220        MapId = mapId;
 2221        OperationSequence = operationSequence;
 2222        EffectiveFrame = effectiveFrame;
 2223        Receipt = new NavigationOperationReceipt(operationSequence, effectiveFrame);
 2224    }
 25
 26    /// <summary>Gets the stable map identifier to remove.</summary>
 27    public string MapId { get; }
 28
 29    /// <summary>Gets the unique host-supplied operation sequence.</summary>
 30    public long OperationSequence { get; }
 31
 32    /// <summary>Gets the earliest eligible fixed-step publication frame.</summary>
 33    public int EffectiveFrame { get; }
 34
 35    /// <summary>Gets the operation's deterministic pending or terminal receipt.</summary>
 36    public NavigationOperationReceipt Receipt { get; }
 37}