< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Tlv.ShortChannelIdTlv
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Tlv/ShortChannelIdTlv.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_ShortChannelId()100%11100%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Tlv;
 2
 3using Channels.ValueObjects;
 4using Constants;
 5
 6/// <summary>
 7/// Short Channel Id TLV.
 8/// </summary>
 9/// <remarks>
 10/// The short channel id TLV is used in the ChannelReadyMessage to communicate the channel type that should be opened.
 11/// </remarks>
 12public class ShortChannelIdTlv : BaseTlv
 13{
 14    /// <summary>
 15    /// The shutdown script to be used when closing the channel
 16    /// </summary>
 817    public ShortChannelId ShortChannelId { get; }
 18
 2019    public ShortChannelIdTlv(ShortChannelId shortChannelId) : base(TlvConstants.ShortChannelId)
 20    {
 2021        ShortChannelId = shortChannelId;
 22
 2023        Value = shortChannelId;
 2024        Length = Value.Length;
 2025    }
 26}