< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
Weights(...)100%10%
Weights(...)100%10%
Weights(...)100%10%
Weights(...)100%10%

File(s)

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

#LineLine coverage
 1namespace Itinero.Routing;
 2
 3/// <summary>
 4/// Contains extension methods for weight routers.
 5/// </summary>
 6public static class IRouterWeightsExtensions
 7{
 8    /// <summary>
 9    /// Configures the router to calculate weights.
 10    /// </summary>
 11    /// <param name="router">The router.</param>
 12    /// <returns>A weights configured router.</returns>
 13    public static IRouterWeights<IRouterOneToOne> Weights(this IRouterOneToOne router)
 014    {
 015        return new RouterWeights<IRouterOneToOne>(router);
 016    }
 17
 18    /// <summary>
 19    /// Configures the router to calculate weights.
 20    /// </summary>
 21    /// <param name="router">The router.</param>
 22    /// <returns>A weights configured router.</returns>
 23    public static IRouterWeights<IRouterManyToOne> Weights(this IRouterManyToOne router)
 024    {
 025        return new RouterWeights<IRouterManyToOne>(router);
 026    }
 27
 28    /// <summary>
 29    /// Configures the router to calculate weights.
 30    /// </summary>
 31    /// <param name="router">The router.</param>
 32    /// <returns>A weights configured router.</returns>
 33    public static IRouterWeights<IRouterOneToMany> Weights(this IRouterOneToMany router)
 034    {
 035        return new RouterWeights<IRouterOneToMany>(router);
 036    }
 37
 38    /// <summary>
 39    /// Configures the router to calculate weights.
 40    /// </summary>
 41    /// <param name="router">The router.</param>
 42    /// <returns>A weights configured router.</returns>
 43    public static IRouterWeights<IRouterManyToMany> Weights(this IRouterManyToMany router)
 044    {
 045        return new RouterWeights<IRouterManyToMany>(router);
 046    }
 47}