< 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@0d738bf294e6281b936d031e1979d928007495ff
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 - 14:53:17 Line coverage: 100% (5/5) Branch coverage: 50% (1/2) Total lines: 16 Tag: Kestrun/Kestrun@78d1e497d8ba989d121b57aa39aa3c6b22de743110/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 - 14:53:17 Line coverage: 100% (5/5) Branch coverage: 50% (1/2) Total lines: 16 Tag: Kestrun/Kestrun@78d1e497d8ba989d121b57aa39aa3c6b22de743110/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
 1using Kestrun.Utilities;
 2
 3namespace Kestrun.Hosting.Options;
 4
 5internal class RouteKeyComparer : IEqualityComparer<(string Pattern, HttpVerb Method)>
 6{
 17    private static readonly StringComparer comparer = StringComparer.OrdinalIgnoreCase;
 8
 169    public bool Equals((string Pattern, HttpVerb Method) x, (string Pattern, HttpVerb Method) y) => comparer.Equals(x.Pa
 10    public int GetHashCode((string Pattern, HttpVerb Method) obj)
 11    {
 4912        return HashCode.Combine(
 4913            comparer.GetHashCode(obj.Pattern),
 4914            comparer.GetHashCode(obj.Method));
 15    }
 16}