< Summary

Information
Class: Trailblazer.Pathing.NavigationStructuralLink
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Graph/NavigationStructuralLink.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 35
Line coverage: 100%
Branch coverage
100%
Covered branches: 4
Total branches: 4
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

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

#LineLine coverage
 1//=======================================================================
 2// NavigationStructuralLink.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 System;
 9
 10namespace Trailblazer.Pathing;
 11
 12/// <summary>Stores one unique directed map dependency and its parallel edge count.</summary>
 13internal readonly struct NavigationStructuralLink : IEquatable<NavigationStructuralLink>
 14{
 15    internal NavigationStructuralLink(
 16        string destinationMapId,
 17        int count,
 18        int uncertifiedCount)
 19    {
 37920        DestinationMapId = destinationMapId;
 37921        Count = count;
 37922        UncertifiedCount = uncertifiedCount;
 37923    }
 24
 25    internal string DestinationMapId { get; }
 26
 27    internal int Count { get; }
 28
 29    internal int UncertifiedCount { get; }
 30
 31    public bool Equals(NavigationStructuralLink other) =>
 232        Count == other.Count
 233        && UncertifiedCount == other.UncertifiedCount
 234        && string.Equals(DestinationMapId, other.DestinationMapId, StringComparison.Ordinal);
 35}