< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Crypto.ValueObjects.CryptoKeyPair
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Crypto/ValueObjects/CryptoKeyPair.cs
Tag: 36_15743069263
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 28
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
get_PrivKey()100%11100%
get_CompactPubKey()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Crypto/ValueObjects/CryptoKeyPair.cs

#LineLine coverage
 1namespace NLightning.Domain.Crypto.ValueObjects;
 2
 3/// <summary>
 4/// A secp256k1 private/public key pair.
 5/// </summary>
 6public readonly record struct CryptoKeyPair
 7{
 8    /// <summary>
 9    /// Gets the private key.
 10    /// </summary>
 20011    public PrivKey PrivKey { get; }
 12
 13    /// <summary>
 14    /// Gets the public key.
 15    /// </summary>
 23616    public CompactPubKey CompactPubKey { get; }
 17
 18    /// <summary>
 19    /// Initializes a new instance of the <see cref="CryptoKeyPair"/> class.
 20    /// </summary>
 21    /// <param name="privKey" cref="ValueObjects.PrivKey">The private key.</param>
 22    /// <param name="compactPubKey" cref="ValueObjects.CompactPubKey"></param>
 23    public CryptoKeyPair(PrivKey privKey, CompactPubKey compactPubKey)
 24    {
 18425        PrivKey = privKey;
 18426        CompactPubKey = compactPubKey;
 18427    }
 28}