< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Hosting.Options.RouteKeyComparer
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Hosting/Options/RouteKeyComparer.cs
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 16
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 08/26/2025 - 01:25:22 Line coverage: 100% (5/5) Branch coverage: 50% (1/2) Total lines: 16 Tag: Kestrun/Kestrun@07f821172e5dc3657f1be7e6818f18d6721cf38a10/13/2025 - 16:52:37 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e 08/26/2025 - 01:25:22 Line coverage: 100% (5/5) Branch coverage: 50% (1/2) Total lines: 16 Tag: Kestrun/Kestrun@07f821172e5dc3657f1be7e6818f18d6721cf38a10/13/2025 - 16:52:37 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
Equals(...)100%22100%
GetHashCode(...)100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Hosting/Options/RouteKeyComparer.cs

#LineLine coverage
 1namespace Kestrun.Hosting.Options;
 2
 3
 4internal class RouteKeyComparer : IEqualityComparer<(string Pattern, string Method)>
 5{
 16    private static readonly StringComparer comparer = StringComparer.OrdinalIgnoreCase;
 7
 168    public bool Equals((string Pattern, string Method) x, (string Pattern, string Method) y) => comparer.Equals(x.Patter
 9
 10    public int GetHashCode((string Pattern, string Method) obj)
 11    {
 4912        return HashCode.Combine(
 4913            comparer.GetHashCode(obj.Pattern),
 4914            comparer.GetHashCode(obj.Method));
 15    }
 16}