< Summary

Class:Itinero.Instructions.Instruction
Assembly:Itinero.Instructions
File(s):/home/runner/work/routing2/routing2/src/Itinero.Instructions/Instruction.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:27
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_BaseInstruction()100%1100%
get_Text()100%1100%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2using Itinero.Instructions.Types;
 3
 4namespace Itinero.Instructions;
 5
 6/// <summary>
 7/// Represents a single turn-by-turn instructions and it's textual representation in one or more languages.
 8/// This is a wrapper around a BaseInstruction <see cref="BaseInstruction"/> and how it can be translated
 9/// </summary>
 10public class Instruction
 11{
 412    public Instruction(BaseInstruction baseInstruction, IReadOnlyDictionary<string, string> text)
 413    {
 414        this.BaseInstruction = baseInstruction;
 415        this.Text = text;
 416    }
 17
 18    /// <summary>
 19    /// The base instruction, the details about the type manoeuvre to make.
 20    /// </summary>
 1021    public BaseInstruction BaseInstruction { get; }
 22
 23    /// <summary>
 24    /// The textual representation of the instruction for a user to follow.
 25    /// </summary>
 526    public IReadOnlyDictionary<string, string> Text { get; }
 27}