< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Name()100%1100%
Generate(...)100%2100%

File(s)

/home/runner/work/routing2/routing2/src/Itinero.Instructions/Types/Generators/EndInstructionGenerator.cs

#LineLine coverage
 1namespace Itinero.Instructions.Types.Generators;
 2
 3internal class EndInstructionGenerator : IInstructionGenerator
 4{
 75    public string Name { get; } = "end";
 6
 7    public BaseInstruction? Generate(IndexedRoute route, int offset)
 58    {
 59        return route.Last - 1 == offset ? new EndInstruction(route) : null;
 510    }
 11}

Methods/Properties

get_Name()
Generate(...)