< Summary

Information
Class: LOCKnet.Data.VaultStorageDescriptor
Assembly: LOCKnet.Data
File(s): /home/runner/work/LOCKnet/LOCKnet/src/LOCKnet.Data/VaultStorageDescriptor.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 44
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%
get_Mode()100%11100%
get_ConnectionString()100%11100%
get_DatabasePath()100%11100%
get_RequiresKeyAtOpen()100%11100%

File(s)

/home/runner/work/LOCKnet/LOCKnet/src/LOCKnet.Data/VaultStorageDescriptor.cs

#LineLine coverage
 1namespace LOCKnet.Data;
 2
 3/// <summary>
 4/// Beschreibt die aktuell erkannte Storage-Konfiguration fuer eine Vault-Datei.
 5/// </summary>
 6public sealed class VaultStorageDescriptor
 7{
 8  /// <summary>
 9  /// Initialisiert eine neue Instanz von <see cref="VaultStorageDescriptor"/>.
 10  /// </summary>
 11  /// <param name="mode">Der erkannte Storage-Modus.</param>
 12  /// <param name="connectionString">Der aktuell verwendbare SQLite-Connection-String.</param>
 13  /// <param name="databasePath">Der aufgeloeste Dateipfad oder <see langword="null"/> bei nicht-dateibasierten Verbindu
 14  /// <param name="requiresKeyAtOpen">Gibt an, ob die Datenbank spaeter bereits zum Oeffnen einen Schluessel benoetigt.<
 29515  public VaultStorageDescriptor(VaultStorageMode mode, string connectionString, string? databasePath, bool requiresKeyAt
 29516  {
 29517    ArgumentException.ThrowIfNullOrWhiteSpace(connectionString);
 18
 29519    Mode = mode;
 29520    ConnectionString = connectionString;
 29521    DatabasePath = databasePath;
 29522    RequiresKeyAtOpen = requiresKeyAtOpen;
 29523  }
 24
 25  /// <summary>
 26  /// Der erkannte Storage-Modus.
 27  /// </summary>
 30328  public VaultStorageMode Mode { get; }
 29
 30  /// <summary>
 31  /// Der aktuell verwendete SQLite-Connection-String.
 32  /// </summary>
 116133  public string ConnectionString { get; }
 34
 35  /// <summary>
 36  /// Der aufgeloeste Dateipfad oder <see langword="null"/> bei nicht-dateibasierten Verbindungen.
 37  /// </summary>
 50538  public string? DatabasePath { get; }
 39
 40  /// <summary>
 41  /// Gibt an, ob diese Storage-Variante bereits beim Oeffnen einen Schluessel benoetigt.
 42  /// </summary>
 4343  public bool RequiresKeyAtOpen { get; }
 44}