< Summary

Class:Itinero.Routing.RoutingSettings
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Routing/RoutingSettings.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:35
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Tag:267_28791001112

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Profile()100%1100%
get_RouteBuilder()100%1100%
get_MaxDistance()100%1100%
get_CostFunctionWrapper()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using Itinero.Profiles;
 3using Itinero.Routes.Builders;
 4using Itinero.Routing.Costs;
 5
 6namespace Itinero.Routing;
 7
 8/// <summary>
 9/// Settings to configure routing.
 10/// </summary>
 11public class RoutingSettings
 12{
 13    /// <summary>
 14    /// Gets or sets the profile.
 15    /// </summary>
 3491816    public Profile Profile { get; set; } = null!;
 17
 18    /// <summary>
 19    /// Gets or sets the route builder.
 20    /// </summary>
 1162721    public IRouteBuilder RouteBuilder { get; set; } = Routes.Builders.RouteBuilder.Default;
 22
 23    /// <summary>
 24    /// Caps a search until the given distance in meter.
 25    /// </summary>
 4630426    public double MaxDistance { get; set; } = double.MaxValue;
 27
 28    /// <summary>
 29    /// An optional hook to wrap the cost function used during routing. When set, the routing
 30    /// engine invokes this with the profile-derived cost function and uses the returned function
 31    /// for the search. This is the supported way to inject per-request edge cost adjustments
 32    /// (e.g. congestion) without mutating the RouterDb.
 33    /// </summary>
 1161134    public Func<ICostFunction, ICostFunction>? CostFunctionWrapper { get; set; }
 35}