< Summary

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

Metrics

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

File(s)

/home/runner/work/routing2/routing2/src/Itinero.Instructions/IRouteAndInstructions.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Itinero.Routes;
 3
 4namespace Itinero.Instructions;
 5
 6/// <summary>
 7/// Abstract representation of a route and generated instructions.
 8/// </summary>
 9public interface IRouteAndInstructions
 10{
 11    /// <summary>
 12    /// The route.
 13    /// </summary>
 14    Route Route { get; }
 15
 16    /// <summary>
 17    /// The instructions per language.
 18    /// </summary>
 19    IReadOnlyList<Instruction> Instructions { get; }
 20}
 21
 22internal class RouteAndInstructions : IRouteAndInstructions
 23{
 424    internal RouteAndInstructions(Route route, IReadOnlyList<Instruction> instructions)
 425    {
 426        this.Route = route;
 427        this.Instructions = instructions;
 428    }
 629    public Route Route { get; }
 30
 231    public IReadOnlyList<Instruction> Instructions { get; }
 32}