< 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@5f1d2b981c9d7292c11fd448428c6ab6c811c5de
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 11/19/2025 - 17:40:50 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@fcf33342333cef0516fe0d0912a86709874fd026 11/19/2025 - 17:40:50 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@fcf33342333cef0516fe0d0912a86709874fd026

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}