< 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:263_26948838820

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{
 3483310    internal Router(RoutingNetwork network, RoutingSettings settings)
 3483311    {
 3483312        this.Network = network;
 3483313        this.Settings = settings;
 3483314    }
 15
 3484916    public RoutingNetwork Network { get; }
 3493417    public RoutingSettings Settings { get; }
 4651318    public (SnapPoint sp, bool? direction) Source { get; internal set; }
 20719    public (SnapPoint sp, bool? direction) Target { get; internal set; }
 3483320    public IReadOnlyList<(SnapPoint sp, bool? direction)> Sources { get; internal set; } = null!;
 5791721    public IReadOnlyList<(SnapPoint sp, bool? direction)> Targets { get; internal set; } = null!;
 22
 3483323    public AlternativeRouteSettings AlternativeRouteSettings { get; internal set; } = null!;
 24}