< 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@6135d944f8787fb570e4dfbacac6e80312799a86
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 12/01/2025 - 20:55:19 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@638a27c2dd54103f693f023b6ba5f56a884caafa 12/01/2025 - 20:55:19 Line coverage: 100% (5/5) Branch coverage: 100% (2/2) Total lines: 16 Tag: Kestrun/Kestrun@638a27c2dd54103f693f023b6ba5f56a884caafa

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}