< 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: 36_15743069263
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 26
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
 1namespace NLightning.Domain.Protocol.Tlv;
 2
 3using Constants;
 4using Crypto.ValueObjects;
 5
 6/// <summary>
 7/// Blinded Path TLV.
 8/// </summary>
 9/// <remarks>
 10/// The blinded path TLV is used in the UpdateAddHtlcMessage to communicate the blinded path key.
 11/// </remarks>
 12public class BlindedPathTlv : BaseTlv
 13{
 14    /// <summary>
 15    /// The blinded path key
 16    /// </summary>
 2817    public CompactPubKey PathKey { get; }
 18
 1619    public BlindedPathTlv(CompactPubKey pathKey) : base(TlvConstants.BlindedPath)
 20    {
 1621        PathKey = pathKey;
 22
 1623        Value = PathKey;
 1624        Length = Value.Length;
 1625    }
 26}