< Summary

Information
Class: GridForge.Grids.GridNavigationBodyTraceReport
Assembly: GridForge
File(s): /home/runner/work/GridForge/GridForge/src/GridForge/Grids/Support/GridNavigationBodyTraceReport.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 51
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
get_IsComplete()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/GridForge/GridForge/src/GridForge/Grids/Support/GridNavigationBodyTraceReport.cs

#LineLine coverage
 1//=======================================================================
 2// GridNavigationBodyTraceReport.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
 8using GridForge.Grids.Topology;
 9
 10namespace GridForge.Grids;
 11
 12/// <summary>Summarizes one bounded swept navigation-body trace.</summary>
 13public readonly struct GridNavigationBodyTraceReport
 14{
 15    /// <summary>The completion status.</summary>
 16    public GridNavigationBodyTraceStatus Status { get; }
 17
 18    /// <summary>The number of candidate grids examined.</summary>
 19    public int GridCandidateCount { get; }
 20
 21    /// <summary>The number of candidate addresses examined.</summary>
 22    public int AddressCandidateCount { get; }
 23
 24    /// <summary>The exact combined grid and address work completed.</summary>
 25    public long CandidateWorkCount { get; }
 26
 27    /// <summary>The number of required and dependency-evidence cells written.</summary>
 28    public int CellCount { get; }
 29
 30    /// <summary>The exact committed world revision observed by the trace.</summary>
 31    public GridCoveredAddressRunStamp RunStamp { get; }
 32
 33    /// <summary>Whether the complete physical prism union was written.</summary>
 234    public bool IsComplete => Status == GridNavigationBodyTraceStatus.Complete;
 35
 36    internal GridNavigationBodyTraceReport(
 37        GridNavigationBodyTraceStatus status,
 38        int gridCandidateCount,
 39        int addressCandidateCount,
 40        long candidateWorkCount,
 41        int cellCount,
 42        GridCoveredAddressRunStamp runStamp)
 43    {
 47144        Status = status;
 47145        GridCandidateCount = gridCandidateCount;
 47146        AddressCandidateCount = addressCandidateCount;
 47147        CandidateWorkCount = candidateWorkCount;
 47148        CellCount = cellCount;
 47149        RunStamp = runStamp;
 47150    }
 51}