< Summary

Class:Itinero.Network.Tiles.Standalone.Mutation.RoutingNetworkMutableExtensions
Assembly:Itinero
File(s):/home/runner/work/routing2/routing2/src/Itinero/Network/Tiles/Standalone/Mutation/RoutingNetworkMutableExtensions.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:33
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
AddOrUpdateTiles(...)0%60%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Network/Tiles/Standalone/Mutation/RoutingNetworkMutableExtensions.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using Itinero.Network.Mutation;
 4
 5namespace Itinero.Network.Tiles.Standalone.Mutation;
 6
 7public static class RoutingNetworkMutableExtensions
 8{
 9    /// <summary>
 10    /// Adds or updates the given tiles.
 11    /// </summary>
 12    /// <param name="mutator">The network mutator.</param>
 13    /// <param name="tiles">The tiles.</param>
 14    public static void AddOrUpdateTiles(this RoutingNetworkMutator mutator, IEnumerable<StandaloneNetworkTile> tiles)
 015    {
 16        // remove all data for tiles that exist.
 017        foreach (var tile in tiles)
 018        {
 019            var networkTile = mutator.GetTile(tile.TileId);
 020            if (networkTile == null) continue;
 21
 022            throw new NotImplementedException();
 23            //networkTile.Clear();
 24        }
 25
 26        // add the tiles again.
 027        foreach (var tile in tiles)
 028        {
 029            var networkTile = mutator.GetTile(tile.TileId);
 30
 031        }
 032    }
 33}

Methods/Properties

AddOrUpdateTiles(...)