< Summary - Envilder .NET SDK

Information
Class: Envilder.SecretExistence
Assembly: Envilder
File(s): /home/runner/work/envilder/envilder/src/sdks/dotnet/Domain/SecretExistence.cs
Tag: 605_44106794472
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 25
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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/envilder/envilder/src/sdks/dotnet/Domain/SecretExistence.cs

#LineLine coverage
 1namespace Envilder;
 2
 3/// <summary>
 4/// The outcome of checking one secret path. <see cref="Reason"/> explains a
 5/// status other than <see cref="SecretExistenceStatus.Exists"/> or
 6/// <see cref="SecretExistenceStatus.Missing"/> when the provider gave one; it
 7/// never carries a secret value.
 8/// </summary>
 9public class SecretExistence
 10{
 11  /// <summary>Initializes a new instance.</summary>
 12  /// <param name="status">Whether the secret exists.</param>
 13  /// <param name="reason">Why the status is not <c>Exists</c> or <c>Missing</c>, when known.</param>
 114  public SecretExistence(SecretExistenceStatus status, string? reason = null)
 15  {
 116    Status = status;
 117    Reason = reason;
 118  }
 19
 20  /// <summary>Whether the secret exists.</summary>
 21  public SecretExistenceStatus Status { get; }
 22
 23  /// <summary>The provider's explanation for the status, when it gave one.</summary>
 24  public string? Reason { get; }
 25}