< Summary

Class:Itinero.Data.GlobalNetworkManager
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Data/GlobalNetworkManager.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:44
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0
Tag:251_23667616543

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor()100%10%
get_VertexIdSet()100%10%
get_EdgeIdSet()100%10%
get_PendingBoundaryCrossings()100%10%
get_PendingRestrictions()100%10%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Data/GlobalNetworkManager.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Itinero.Network;
 3using Itinero.Network.Tiles.Standalone.Global;
 4
 5namespace Itinero.Data;
 6
 7/// <summary>
 8/// A manager to manage mapping or vertex and edge ids and turn restrictions.
 9/// </summary>
 10public class GlobalNetworkManager
 11{
 12    /// <summary>
 13    /// Creates a new global network manager.
 14    /// </summary>
 015    public GlobalNetworkManager()
 016    {
 017        this.VertexIdSet = new GlobalVertexIdSet();
 018        this.EdgeIdSet = new GlobalEdgeIdSet();
 019    }
 20
 21    /// <summary>
 22    /// The global vertex id set.
 23    /// </summary>
 024    public GlobalVertexIdSet VertexIdSet { get; }
 25
 26    /// <summary>
 27    /// The global edge id set.
 28    /// </summary>
 029    public GlobalEdgeIdSet EdgeIdSet { get; }
 30
 31    /// <summary>
 32    /// Pending boundary crossings keyed by GlobalEdgeId.
 33    /// When a crossing's matching tile isn't loaded yet, store the local vertex and metadata here.
 34    /// When the other tile loads and has a crossing with the same GlobalEdgeId, it creates the edge.
 35    /// </summary>
 36    public Dictionary<GlobalEdgeId, (VertexId vertex, IEnumerable<(string key, string value)> attributes,
 37        uint edgeTypeId, bool isIncoming)> PendingBoundaryCrossings
 038    { get; } = new();
 39
 40    /// <summary>
 41    /// Restrictions that couldn't be resolved yet because not all edges are available.
 42    /// </summary>
 043    public List<GlobalRestriction> PendingRestrictions { get; } = new();
 44}