< 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: 36_15743069263
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
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
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Channels.ValueObjects;
 4using Crypto.ValueObjects;
 5using Interfaces;
 6
 7/// <summary>
 8/// Represents the payload for the channel_ready message.
 9/// </summary>
 10/// <remarks>
 11/// Initializes a new instance of the ChannelReadyPayload class.
 12/// </remarks>
 13/// <param name="channelId">The channel ID.</param>
 2014public class ChannelReadyPayload(ChannelId channelId, CompactPubKey secondPerCommitmentPoint) : IChannelMessagePayload
 15{
 16    /// <summary>
 17    /// Gets the channel ID.
 18    /// </summary>
 3619    public ChannelId ChannelId { get; } = channelId;
 20
 2821    public CompactPubKey SecondPerCommitmentPoint { get; } = secondPerCommitmentPoint;
 22}