< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
GetVertex(...)0%20%

File(s)

/home/runner/work/routing2/routing2/src/Itinero/Network/Tiles/NetworkTileExtensions.cs

#LineLine coverage
 1using System;
 2
 3namespace Itinero.Network.Tiles;
 4
 5/// <summary>
 6/// Contains network tile extensions.
 7/// </summary>
 8internal static class NetworkTileExtensions
 9{
 10    /// <summary>
 11    /// Gets the location of the given vertex.
 12    /// </summary>
 13    /// <param name="tile">The tile.</param>
 14    /// <param name="vertex">The vertex.</param>
 15    /// <returns>The location.</returns>
 16    /// <exception cref="ArgumentOutOfRangeException">When the vertex doesn't exist.</exception>
 17    public static (double longitude, double latitude, float? e) GetVertex(this NetworkTile tile,
 18        VertexId vertex)
 019    {
 020        if (!tile.TryGetVertex(vertex, out var longitude, out var latitude, out var e))
 021        {
 022            throw new ArgumentOutOfRangeException(nameof(vertex));
 23        }
 24
 025        return (longitude, latitude, e);
 026    }
 27}

Methods/Properties

GetVertex(...)