< Summary

Class:Itinero.Instructions.Types.Generators.StartInstructionGenerator
Assembly:Itinero.Instructions
File(s):/home/runner/work/routing2/routing2/src/Itinero.Instructions/Types/Generators/StartInstructionGenerator.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:16
Line coverage:100% (7 of 7)
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/StartInstructionGenerator.cs

#LineLine coverage
 1namespace Itinero.Instructions.Types.Generators;
 2
 3internal class StartInstructionGenerator : IInstructionGenerator
 4{
 95    public string Name { get; } = "start";
 6
 7    public BaseInstruction? Generate(IndexedRoute route, int offset)
 118    {
 119        if (offset == 0)
 410        {
 411            return new StartInstruction(route);
 12        }
 13
 714        return null;
 1115    }
 16}

Methods/Properties

get_Name()
Generate(...)