< Summary

Class:Itinero.Instructions.Box`1
Assembly:Itinero.Instructions
File(s):/home/runner/work/routing2/routing2/src/Itinero.Instructions/Utils.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:32
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0
Tag:224_14471318300

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Content()100%1100%

File(s)

/home/runner/work/routing2/routing2/src/Itinero.Instructions/Utils.cs

#LineLine coverage
 1using System;
 2using Itinero.Routes;
 3
 4namespace Itinero.Instructions;
 5
 6internal class Box<T>
 7{
 28    public T Content { get; set; }
 9}
 10
 11internal static class Utils
 12{
 13
 14    /**
 15     * Normalizes degrees to be between -180 (incl) and 180 (excl)
 16     */
 17    internal static int NormalizeDegrees(this double degrees)
 18    {
 19        if (degrees <= -180)
 20        {
 21            degrees += 360;
 22        }
 23
 24        if (degrees > 180)
 25        {
 26            degrees -= 360;
 27        }
 28
 29        return (int)degrees;
 30    }
 31
 32}

Methods/Properties

get_Content()