< Summary

Class:Itinero.Routing.Flavours.Dijkstra.EdgeBased.Extensions
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Routing/Flavours/Dijkstra/EdgeBased/Extensions.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:16
Line coverage:100% (6 of 6)
Covered branches:4
Total branches:4
Branch coverage:100% (4 of 4)
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
Forward(...)100%2100%
Backward(...)100%2100%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Routing/Flavours/Dijkstra/EdgeBased/Extensions.cs

#LineLine coverage
 1using Itinero.Snapping;
 2
 3namespace Itinero.Routing.Flavours.Dijkstra.EdgeBased;
 4
 5internal static class Extensions
 6{
 7    public static bool Forward(this (SnapPoint sp, bool? direction) point)
 818    {
 819        return point.direction == null || point.direction.Value;
 8110    }
 11
 12    public static bool Backward(this (SnapPoint sp, bool? direction) point)
 5513    {
 5514        return point.direction == null || !point.direction.Value;
 5515    }
 16}

Methods/Properties

Forward(...)
Backward(...)