< Summary - Combined Code Coverage

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

File(s)

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

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Tlv;
 2
 3using Constants;
 4
 5/// <summary>
 6/// Channel Type TLV.
 7/// </summary>
 8/// <remarks>
 9/// The channels type TLV is used in the AcceptChannel2Message to communicate the channel type that should be opened.
 10/// </remarks>
 11public class ChannelTypeTlv : BaseTlv
 12{
 13    /// <summary>
 14    /// The channel type
 15    /// </summary>
 1216    public byte[] ChannelType { get; }
 17
 3218    public ChannelTypeTlv(byte[] channelType) : base(TlvConstants.CHANNEL_TYPE)
 19    {
 3220        ChannelType = channelType;
 21
 3222        Value = channelType;
 3223        Length = Value.Length;
 3224    }
 25}