< Summary

Class:Itinero.Network.Tiles.Standalone.BoundaryOrLocalEdgeId
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Network/Tiles/Standalone/BoundaryOrLocalEdgeId.cs
Covered lines:5
Uncovered lines:5
Coverable lines:10
Total lines:37
Line coverage:50% (5 of 10)
Covered branches:0
Total branches:0
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)100%1100%
.ctor(...)100%10%
get_LocalId()100%1100%
get_BoundaryId()100%10%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Network/Tiles/Standalone/BoundaryOrLocalEdgeId.cs

#LineLine coverage
 1namespace Itinero.Network.Tiles.Standalone;
 2
 3/// <summary>
 4/// An id that can represent edge that are part of tiles or boundary edges.
 5/// </summary>
 6public readonly struct BoundaryOrLocalEdgeId
 7{
 8    /// <summary>
 9    /// Creates an id using an edge id.
 10    /// </summary>
 11    /// <param name="edgeId"></param>
 12    public BoundaryOrLocalEdgeId(EdgeId edgeId)
 213    {
 214        this.LocalId = edgeId;
 215        this.BoundaryId = null;
 216    }
 17
 18    /// <summary>
 19    /// Creates an id using a boundary edge id.
 20    /// </summary>
 21    /// <param name="boundaryEdgeId"></param>
 22    public BoundaryOrLocalEdgeId(BoundaryEdgeId boundaryEdgeId)
 023    {
 024        this.BoundaryId = boundaryEdgeId;
 025        this.LocalId = null;
 026    }
 27
 28    /// <summary>
 29    /// The local id, an edge that is fully inside the tile.
 30    /// </summary>
 831    public EdgeId? LocalId { get; }
 32
 33    /// <summary>
 34    /// A boundary edge, an edge that crosses tile boundaries.
 35    /// </summary>
 036    public BoundaryEdgeId? BoundaryId { get; }
 37}