< Summary

Information
Class: Trailblazer.Pathing.NavigationSurfaceComponent
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Graph/NavigationSurfaceComponent.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
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%
get_RetainedBytes()100%11100%
get_PersistentPageCount()100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Graph/NavigationSurfaceComponent.cs

#LineLine coverage
 1//=======================================================================
 2// NavigationSurfaceComponent.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>Stores one immutable exact weak surface component.</summary>
 11internal sealed class NavigationSurfaceComponent
 12{
 196413    internal NavigationSurfaceComponent(
 196414        NavigationSurfaceComponentKey key,
 196415        long version,
 196416        NavigationPagedSequence<NavigationCellAddress> members,
 196417        bool allSurfaceEdgesEuclideanCertified)
 18    {
 196419        Key = key;
 196420        Version = version;
 196421        Members = members;
 196422        AllSurfaceEdgesEuclideanCertified = allSurfaceEdgesEuclideanCertified;
 196423    }
 24
 25    internal NavigationSurfaceComponentKey Key { get; }
 26
 27    internal long Version { get; }
 28
 29    internal NavigationPagedSequence<NavigationCellAddress> Members { get; }
 30
 31    internal bool AllSurfaceEdgesEuclideanCertified { get; }
 32
 412933    internal long RetainedBytes => checked(48L + Members.RetainedBytes);
 34
 412935    internal int PersistentPageCount => checked(1 + Members.PersistentPageCount);
 36}