< Summary

Class:Itinero.Instructions.Types.FollowBendInstruction
Assembly:Itinero.Instructions
File(s):/home/runner/work/routing2/routing2/src/Itinero.Instructions/Types/FollowBendInstruction.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:18
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Tag:224_14471318300

Metrics

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

File(s)

/home/runner/work/routing2/routing2/src/Itinero.Instructions/Types/FollowBendInstruction.cs

#LineLine coverage
 1namespace Itinero.Instructions.Types;
 2
 3public class FollowBendInstruction : BaseInstruction
 4{
 5    /// <summary>
 6    ///     A bend in the road is there if:
 7    ///     - Within the first 100m, the road turns at least 25°
 8    ///     - The road feels continuous:
 9    ///     *  All the branches are on the non-turning side (e.g. the turn direction is left, but there are no branches 
 10    ///     left)
 11    ///     * OR the branches on the turn-to side are all service roads or tracks and the current one isn't that too
 12    ///     - There are no major bends in the other direction (thus: every individual bend is at least 0°)
 13    /// </summary>
 514    public FollowBendInstruction(IndexedRoute route, int shapeIndex, int shapeIndexEnd, int turnDegrees) : base(
 515        route, shapeIndex, shapeIndexEnd, turnDegrees)
 516    {
 517    }
 18}

Methods/Properties

.ctor(...)