< Summary

Class:Itinero.Routing.RouterWeights`1
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Routing/IRouterWeights.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:25
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)100%10%
get_Router()100%10%

File(s)

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

#LineLine coverage
 1namespace Itinero.Routing;
 2
 3/// <summary>
 4/// Abstract representation of a router configured for weight calculations.
 5/// </summary>
 6/// <typeparam name="T"></typeparam>
 7public interface IRouterWeights<out T>
 8    where T : IRouter
 9{
 10    /// <summary>
 11    /// Gets the router.
 12    /// </summary>
 13    T Router { get; }
 14}
 15
 16internal class RouterWeights<T> : IRouterWeights<T>
 17    where T : IRouter
 18{
 019    public RouterWeights(T router)
 020    {
 021        this.Router = router;
 022    }
 23
 024    public T Router { get; }
 25}

Methods/Properties

.ctor(...)
get_Router()