< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Certificates.SelfSignedCertificateResult
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Certificates/SelfSignedCertificateResult.cs
Tag: Kestrun/Kestrun@fd20e9dbe5c2c9fa4dfb9f27bd0a5c4b911dd8bd
Line coverage
83%
Covered lines: 5
Uncovered lines: 1
Coverable lines: 6
Total lines: 35
Line coverage: 83.3%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 04/23/2026 - 14:35:41 Line coverage: 83.3% (5/6) Total lines: 35 Tag: Kestrun/Kestrun@2fdbb120ca2faaa9acf2b8d2a34a7d64b067edbe

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Certificate()100%11100%
get_RootCertificate()100%11100%
get_LeafCertificate()100%11100%
get_PublicRootCertificate()100%11100%
get_RootTrusted()100%11100%
get_IsDevelopmentCertificate()100%210%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Certificates/SelfSignedCertificateResult.cs

#LineLine coverage
 1using System.Security.Cryptography.X509Certificates;
 2
 3namespace Kestrun.Certificates;
 4
 5/// <summary>
 6/// Represents the result of creating a self-signed certificate or development certificate bundle.
 7/// </summary>
 8/// <param name="Certificate">The primary generated certificate. For development mode, this is the issued leaf certifica
 479public record SelfSignedCertificateResult(X509Certificate2 Certificate)
 10{
 11    /// <summary>
 12    /// Gets the effective development root certificate when development mode is used.
 13    /// </summary>
 1314    public X509Certificate2? RootCertificate { get; init; }
 15
 16    /// <summary>
 17    /// Gets the issued development leaf certificate when development mode is used.
 18    /// </summary>
 1419    public X509Certificate2? LeafCertificate { get; init; }
 20
 21    /// <summary>
 22    /// Gets a public-only copy of the effective development root certificate when development mode is used.
 23    /// </summary>
 1224    public X509Certificate2? PublicRootCertificate { get; init; }
 25
 26    /// <summary>
 27    /// Gets a value indicating whether the development root certificate is present in the Windows CurrentUser Root stor
 28    /// </summary>
 529    public bool RootTrusted { get; init; }
 30
 31    /// <summary>
 32    /// Gets a value indicating whether the result represents a development certificate bundle.
 33    /// </summary>
 034    public bool IsDevelopmentCertificate => RootCertificate is not null;
 35}