< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Hosting.Options.AuthKeyComparer
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Hosting/Options/AuthKeyComparer.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 09/16/2025 - 04:01:29 Line coverage: 0% (0/5) Branch coverage: 0% (0/2) Total lines: 16 Tag: Kestrun/Kestrun@e5263347b0baba68d9fd62ffbf60a7dd87f994bb10/13/2025 - 16:52:37 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e 09/16/2025 - 04:01:29 Line coverage: 0% (0/5) Branch coverage: 0% (0/2) Total lines: 16 Tag: Kestrun/Kestrun@e5263347b0baba68d9fd62ffbf60a7dd87f994bb10/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/AuthKeyComparer.cs

#LineLine coverage
 1namespace Kestrun.Hosting.Options;
 2
 3
 4internal class AuthKeyComparer : IEqualityComparer<(string Scheme, string Type)>
 5{
 16    private static readonly StringComparer comparer = StringComparer.OrdinalIgnoreCase;
 7
 48    public bool Equals((string Scheme, string Type) x, (string Scheme, string Type) y) => comparer.Equals(x.Scheme, y.Sc
 9
 10    public int GetHashCode((string Scheme, string Type) obj)
 11    {
 612        return HashCode.Combine(
 613            comparer.GetHashCode(obj.Scheme),
 614            comparer.GetHashCode(obj.Type));
 15    }
 16}