< 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@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 23
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 - 02:25:56 Line coverage: 100% (8/8) Total lines: 23 Tag: Kestrun/Kestrun@98ff905e5605a920343154665980a71211a03c6d

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%

File(s)

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

#LineLine coverage
 1namespace Kestrun.Certificates;
 2
 3/// <summary>
 4/// Options for creating a Certificate Signing Request (CSR).
 5/// </summary>
 6/// <param name="DnsNames">The DNS names to include in the CSR's Subject Alternative Name (SAN) extension.</param>
 7/// <param name="KeyType">The type of cryptographic key to use (RSA or ECDSA).</param>
 8/// <param name="KeyLength">The length of the cryptographic key in bits.</param>
 9/// <param name="Country">The country code for the subject distinguished name.</param>
 10/// <param name="Org">The organization name for the subject distinguished name.</param>
 11/// <param name="OrgUnit">The organizational unit for the subject distinguished name.</param>
 12/// <param name="CommonName">The common name for the subject distinguished name.</param>
 13/// <remarks>
 14/// This record is used to specify options for creating a Certificate Signing Request (CSR).
 15/// </remarks>
 216public record CsrOptions(
 217    IEnumerable<string> DnsNames,
 418    KeyType KeyType = KeyType.Rsa,
 219    int KeyLength = 2048,
 220    string? Country = null,
 221    string? Org = null,
 222    string? OrgUnit = null,
 423    string? CommonName = null);