< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Tlv.BlindedPathTlv
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Tlv/BlindedPathTlv.cs
Tag: 30_15166811759
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 27
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_PathKey()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Tlv/BlindedPathTlv.cs

#LineLine coverage
 1using NBitcoin;
 2
 3namespace NLightning.Domain.Protocol.Tlv;
 4
 5using Constants;
 6
 7/// <summary>
 8/// Blinded Path TLV.
 9/// </summary>
 10/// <remarks>
 11/// The blinded path TLV is used in the UpdateAddHtlcMessage to communicate the blinded path key.
 12/// </remarks>
 13public class BlindedPathTlv : BaseTlv
 14{
 15    /// <summary>
 16    /// The blinded path key
 17    /// </summary>
 2818    public PubKey PathKey { get; }
 19
 1620    public BlindedPathTlv(PubKey pathKey) : base(TlvConstants.BLINDED_PATH)
 21    {
 1622        PathKey = pathKey;
 23
 1624        Value = PathKey.ToBytes();
 1625        Length = Value.Length;
 1626    }
 27}