< Summary

Class:Itinero.MapMatching.Model.GraphEdge
Assembly:Itinero.MapMatching
File(s):/home/runner/work/routing2/routing2/src/Itinero.MapMatching/Model/GraphEdge.cs
Covered lines:5
Uncovered lines:3
Coverable lines:8
Total lines:25
Line coverage:62.5% (5 of 8)
Covered branches:0
Total branches:0
Tag:251_23667616543

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Node1()100%1100%
get_Node2()100%1100%
get_Cost()100%1100%
get_Attributes()100%1100%
get_CachedPath()100%1100%
ToString()100%10%

File(s)

/home/runner/work/routing2/routing2/src/Itinero.MapMatching/Model/GraphEdge.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Itinero.Routes.Paths;
 3
 4namespace Itinero.MapMatching.Model;
 5
 6public class GraphEdge
 7{
 2693788    public int Node1 { get; set; }
 9
 24868510    public int Node2 { get; set; }
 11
 24357312    public double Cost { get; set; }
 13
 12366714    public List<(string key, string value)>? Attributes { get; set; }
 15
 16    /// <summary>
 17    /// The cached route path between the two snap points, if available.
 18    /// </summary>
 12768919    public Path? CachedPath { get; set; }
 20
 21    public override string ToString()
 022    {
 023        return $"{this.Node1} -> {this.Node2} with c={this.Cost}";
 024    }
 25}