< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Certificates.DevelopmentCertificateOptions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Certificates/DevelopmentCertificateOptions.cs
Tag: Kestrun/Kestrun@765a8f13c573c01494250a29d6392b6037f087c9
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 22
Line coverage: 100%
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/19/2026 - 15:52:57 Line coverage: 100% (8/8) Total lines: 22 Tag: Kestrun/Kestrun@765a8f13c573c01494250a29d6392b6037f087c9

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_DnsNames()100%11100%
get_RootCertificate()100%11100%
get_RootName()100%11100%
get_RootValidDays()100%11100%
get_LeafValidDays()100%11100%
get_TrustRoot()100%11100%
get_Exportable()100%11100%

File(s)

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

#LineLine coverage
 1using System.Security.Cryptography.X509Certificates;
 2
 3namespace Kestrun.Certificates;
 4
 5/// <summary>
 6/// Options for creating a development certificate bundle.
 7/// </summary>
 8/// <param name="DnsNames">The DNS names and IP SAN values to include in the development leaf certificate. When null, lo
 9/// <param name="RootCertificate">An optional CA root certificate used to sign the development leaf certificate.</param>
 10/// <param name="RootName">The common name to use when creating a new development root certificate.</param>
 11/// <param name="RootValidDays">The number of days a generated development root certificate is valid.</param>
 12/// <param name="LeafValidDays">The number of days the development leaf certificate is valid.</param>
 13/// <param name="TrustRoot">When true on Windows, adds the effective root certificate to the CurrentUser Root store.</pa
 14/// <param name="Exportable">When true, generated certificates use exportable private keys.</param>
 315public record DevelopmentCertificateOptions(
 316    IEnumerable<string>? DnsNames = null,
 317    X509Certificate2? RootCertificate = null,
 218    string RootName = "Kestrun Development Root CA",
 519    int RootValidDays = 3650,
 620    int LeafValidDays = 30,
 321    bool TrustRoot = false,
 822    bool Exportable = false);