< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Zoom()100%1100%
get_MaxIslandSize()100%1100%
get_EdgeTypeIndex()100%1100%
get_EdgeTypeMap()100%1100%
get_TurnCostTypeIndex()100%1100%
get_TurnCostTypeMap()100%1100%
Default()100%1100%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/RouterDbConfiguration.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Itinero.Indexes;
 3
 4namespace Itinero;
 5
 6/// <summary>
 7/// Defines router db settings.
 8/// </summary>
 9public class RouterDbConfiguration
 10{
 11    /// <summary>
 12    /// Gets or sets the zoom level.
 13    /// </summary>
 39614    public int Zoom { get; set; } = 14;
 15
 16    /// <summary>
 17    /// Gets or sets the maximum size of islands.
 18    /// </summary>
 45019    public int MaxIslandSize { get; set; } = 256;
 20
 21    /// <summary>
 22    /// Gets or sets the initial edge types.
 23    /// </summary>
 30224    public AttributeSetIndex EdgeTypeIndex { get; set; } = new AttributeSetDictionaryIndex();
 25
 26    /// <summary>
 27    /// Gets or sets the edge type map.
 28    /// </summary>
 15429    public AttributeSetMap? EdgeTypeMap { get; set; }
 30
 31    /// <summary>
 32    /// Gets or sets the initial turn cost types.
 33    /// </summary>
 30234    public AttributeSetIndex TurnCostTypeIndex { get; set; } = new AttributeSetDictionaryIndex();
 35
 36    /// <summary>
 37    /// Gets or sets the turn cost type map.
 38    /// </summary>
 15139    public AttributeSetMap? TurnCostTypeMap { get; set; }
 40
 41    /// <summary>
 42    /// Gets the default configuration.
 43    /// </summary>
 28244    public static RouterDbConfiguration Default() { return new() { Zoom = 14, MaxIslandSize = 1024 }; }
 45}