< Summary

Class:Itinero.Network.Search.Islands.IslandsExtensions
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Network/Search/Islands/IslandsExtensions.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:21
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
IsEdgeOnIsland(...)0%80%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Network/Search/Islands/IslandsExtensions.cs

#LineLine coverage
 1using Itinero.Network.Enumerators.Edges;
 2
 3namespace Itinero.Network.Search.Islands;
 4
 5internal static class IslandsExtensions
 6{
 7    public static bool? IsEdgeOnIsland(this Islands islands, IEdgeEnumerator e, uint tileNotDone = uint.MaxValue)
 08    {
 09        var onIsland = islands.IsEdgeOnIsland(e.EdgeId);
 010        if (onIsland) return true;
 11
 012        var t = e.Tail.TileId;
 013        if (!e.Forward) t = e.Head.TileId;
 14
 015        if (t == tileNotDone) return null;
 016        if (!islands.GetTileDone(t)) return null;
 17
 18        // tile is done, we are sure this edge is not on an island.
 019        return false;
 020    }
 21}

Methods/Properties

IsEdgeOnIsland(...)