< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Messages.BaseChannelMessage
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Messages/BaseChannelMessage.cs
Tag: 36_15743069263
Line coverage
57%
Covered lines: 4
Uncovered lines: 3
Coverable lines: 7
Total lines: 23
Line coverage: 57.1%
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_Payload()100%11100%
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Messages/BaseChannelMessage.cs

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Messages;
 2
 3using Constants;
 4using Interfaces;
 5using Models;
 6using Payloads;
 7
 8public abstract class BaseChannelMessage : BaseMessage, IChannelMessage
 9{
 10    /// <inheritdoc />
 103211    public new virtual IChannelMessagePayload Payload { get; protected set; }
 12
 13    public BaseChannelMessage(MessageTypes type, IChannelMessagePayload payload, TlvStream? extension = null)
 32814        : base(type, payload, extension)
 15    {
 32816        Payload = payload;
 32817    }
 18
 019    internal BaseChannelMessage(MessageTypes type) : base(type)
 20    {
 021        Payload = new PlaceholderPayload();
 022    }
 23}