< Summary - Envilder .NET SDK

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

#LineLine coverage
 1namespace Envilder;
 2
 3/// <summary>
 4/// One variable of the map file with the outcome for the path it maps to.
 5/// </summary>
 6public class KeyCheck
 7{
 8  /// <summary>Initializes a new instance.</summary>
 9  /// <param name="variable">The environment variable name.</param>
 10  /// <param name="path">The secret path or name it maps to.</param>
 11  /// <param name="provider">The provider the path was checked against.</param>
 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 KeyCheck(
 115    string variable,
 116    string path,
 117    SecretProviderType provider,
 118    SecretExistenceStatus status,
 119    string? reason = null)
 20  {
 121    Variable = variable;
 122    Path = path;
 123    Provider = provider;
 124    Status = status;
 125    Reason = reason;
 126  }
 27
 28  /// <summary>The environment variable name.</summary>
 29  public string Variable { get; }
 30
 31  /// <summary>The secret path or name the variable maps to.</summary>
 32  public string Path { get; }
 33
 34  /// <summary>The provider the path was checked against.</summary>
 35  public SecretProviderType Provider { get; }
 36
 37  /// <summary>Whether the secret exists.</summary>
 38  public SecretExistenceStatus Status { get; }
 39
 40  /// <summary>The provider's explanation for the status, when it gave one.</summary>
 41  public string? Reason { get; }
 42}