< 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: 36_15743069263
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 32
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
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Channels.ValueObjects;
 4using Crypto.ValueObjects;
 5using Interfaces;
 6
 7/// <summary>
 8/// Represents the payload for the revoke_and_ack message.
 9/// </summary>
 10/// <remarks>
 11/// Initializes a new instance of the RevokeAndAckPayload class.
 12/// </remarks>
 813public class RevokeAndAckPayload(
 814    ChannelId channelId,
 815    CompactPubKey nextPerCommitmentPoint,
 816    ReadOnlyMemory<byte> perCommitmentSecret) : IChannelMessagePayload
 17{
 18    /// <summary>
 19    /// The channel_id this message refers to
 20    /// </summary>
 1621    public ChannelId ChannelId { get; } = channelId;
 22
 23    /// <summary>
 24    /// len is the per commitment secret
 25    /// </summary>
 1626    public ReadOnlyMemory<byte> PerCommitmentSecret { get; } = perCommitmentSecret;
 27
 28    /// <summary>
 29    /// The next per commitment point
 30    /// </summary>
 1631    public CompactPubKey NextPerCommitmentPoint { get; } = nextPerCommitmentPoint;
 32}