< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Payloads.ChannelReadyPayload
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/ChannelReadyPayload.cs
Tag: 30_15166811759
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 23
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
.ctor(...)100%11100%
get_ChannelId()100%11100%
get_SecondPerCommitmentPoint()100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/ChannelReadyPayload.cs

#LineLine coverage
 1using NBitcoin;
 2
 3namespace NLightning.Domain.Protocol.Payloads;
 4
 5using Interfaces;
 6using ValueObjects;
 7
 8/// <summary>
 9/// Represents the payload for the channel_ready message.
 10/// </summary>
 11/// <remarks>
 12/// Initializes a new instance of the ChannelReadyPayload class.
 13/// </remarks>
 14/// <param name="channelId">The channel ID.</param>
 2015public class ChannelReadyPayload(ChannelId channelId, PubKey secondPerCommitmentPoint) : IMessagePayload
 16{
 17    /// <summary>
 18    /// Gets the channel ID.
 19    /// </summary>
 3620    public ChannelId ChannelId { get; } = channelId;
 21
 2822    public PubKey SecondPerCommitmentPoint { get; } = secondPerCommitmentPoint;
 23}