< 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:284_38118444584

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)
 1624310    {
 1624311        var factor = profile.Factor(enumerator.Attributes);
 1624312        if (!enumerator.Forward)
 780913        {
 780914            factor = factor.Reverse;
 780915        }
 16
 1624317        return factor;
 1624318    }
 19}

Methods/Properties

FactorInEdgeDirection(...)