< Summary

Class:Itinero.Routing.Router
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Routing/Router.cs
Covered lines:12
Uncovered lines:0
Coverable lines:12
Total lines:24
Line coverage:100% (12 of 12)
Covered branches:0
Total branches:0
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)100%1100%
get_Network()100%1100%
get_Settings()100%1100%
get_Source()100%1100%
get_Target()100%1100%
get_Sources()100%1100%
get_Targets()100%1100%
get_AlternativeRouteSettings()100%1100%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Routing/Router.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Itinero.Network;
 3using Itinero.Routing.Alternatives;
 4using Itinero.Snapping;
 5
 6namespace Itinero.Routing;
 7
 8internal class Router : IRouter, IRouterOneToOne, IRouterManyToMany, IRouterManyToOne, IRouterOneToMany, IRouterOneToOne
 9{
 2110    internal Router(RoutingNetwork network, RoutingSettings settings)
 2111    {
 2112        this.Network = network;
 2113        this.Settings = settings;
 2114    }
 15
 2816    public RoutingNetwork Network { get; }
 3517    public RoutingSettings Settings { get; }
 2818    public (SnapPoint sp, bool? direction) Source { get; internal set; }
 1419    public (SnapPoint sp, bool? direction) Target { get; internal set; }
 2120    public IReadOnlyList<(SnapPoint sp, bool? direction)> Sources { get; internal set; } = null!;
 2121    public IReadOnlyList<(SnapPoint sp, bool? direction)> Targets { get; internal set; } = null!;
 22
 2123    public AlternativeRouteSettings AlternativeRouteSettings { get; internal set; } = null!;
 24}