< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Payloads.RevokeAndAckPayload
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/RevokeAndAckPayload.cs
Tag: 30_15166811759
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 31
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_PerCommitmentSecret()100%11100%
get_NextPerCommitmentPoint()100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/RevokeAndAckPayload.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 revoke_and_ack message.
 10/// </summary>
 11/// <remarks>
 12/// Initializes a new instance of the RevokeAndAckPayload class.
 13/// </remarks>
 814public class RevokeAndAckPayload(ChannelId channelId, PubKey nextPerCommitmentPoint,
 815                                 ReadOnlyMemory<byte> perCommitmentSecret) : IMessagePayload
 16{
 17    /// <summary>
 18    /// The channel_id this message refers to
 19    /// </summary>
 1620    public ChannelId ChannelId { get; } = channelId;
 21
 22    /// <summary>
 23    /// len is the per commitment secret
 24    /// </summary>
 1625    public ReadOnlyMemory<byte> PerCommitmentSecret { get; } = perCommitmentSecret;
 26
 27    /// <summary>
 28    /// The next per commitment point
 29    /// </summary>
 1630    public PubKey NextPerCommitmentPoint { get; } = nextPerCommitmentPoint;
 31}