< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Certificates.CsrOptions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Certificates/CsrOptions.cs
Tag: Kestrun/Kestrun@5f1d2b981c9d7292c11fd448428c6ab6c811c5de
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 27
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 11/19/2025 - 17:40:50 Line coverage: 100% (8/8) Total lines: 23 Tag: Kestrun/Kestrun@fcf33342333cef0516fe0d0912a86709874fd02604/19/2026 - 15:52:57 Line coverage: 100% (9/9) Total lines: 27 Tag: Kestrun/Kestrun@765a8f13c573c01494250a29d6392b6037f087c9

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_DnsNames()100%11100%
get_KeyType()100%11100%
get_KeyLength()100%11100%
get_Country()100%11100%
get_Org()100%11100%
get_OrgUnit()100%11100%
get_CommonName()100%11100%
get_KeyUsageFlags()100%11100%

File(s)

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

#LineLine coverage
 1using System.Security.Cryptography.X509Certificates;
 2
 3namespace Kestrun.Certificates;
 4
 5/// <summary>
 6/// Options for creating a Certificate Signing Request (CSR).
 7/// </summary>
 8/// <param name="DnsNames">The DNS names to include in the CSR's Subject Alternative Name (SAN) extension.</param>
 9/// <param name="KeyType">The type of cryptographic key to use (RSA or ECDSA).</param>
 10/// <param name="KeyLength">The length of the cryptographic key in bits.</param>
 11/// <param name="Country">The country code for the subject distinguished name.</param>
 12/// <param name="Org">The organization name for the subject distinguished name.</param>
 13/// <param name="OrgUnit">The organizational unit for the subject distinguished name.</param>
 14/// <param name="CommonName">The common name for the subject distinguished name.</param>
 15/// <param name="KeyUsageFlags">Optional X.509 key usage flags to include in the CSR extension request. Null or <see cre
 16/// <remarks>
 17/// This record is used to specify options for creating a Certificate Signing Request (CSR).
 18/// </remarks>
 319public record CsrOptions(
 320    IEnumerable<string> DnsNames,
 621    KeyType KeyType = KeyType.Rsa,
 322    int KeyLength = 2048,
 323    string? Country = null,
 324    string? Org = null,
 325    string? OrgUnit = null,
 326    string? CommonName = null,
 627    X509KeyUsageFlags? KeyUsageFlags = null);