< Summary

Class:Itinero.Profiles.ProfileExtensions
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Profiles/ProfileExtensions.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:19
Line coverage:100% (8 of 8)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
FactorInEdgeDirection(...)100%2100%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Profiles/ProfileExtensions.cs

#LineLine coverage
 1using Itinero.Network;
 2using Itinero.Network.Enumerators.Edges;
 3
 4namespace Itinero.Profiles;
 5
 6public static class ProfileExtensions
 7{
 8    internal static EdgeFactor FactorInEdgeDirection(this Profile profile,
 9        IEdgeEnumerator<RoutingNetwork> enumerator)
 19110    {
 19111        var factor = profile.Factor(enumerator.Attributes);
 19112        if (!enumerator.Forward)
 8713        {
 8714            factor = factor.Reverse;
 8715        }
 16
 19117        return factor;
 19118    }
 19}

Methods/Properties

FactorInEdgeDirection(...)