< Summary - Combined Code Coverage

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

File(s)

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

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Interfaces;
 4using Messages;
 5using ValueObjects;
 6
 7/// <summary>
 8/// Represents the payload for the tx_init_rbf message.
 9/// </summary>
 10/// <remarks>
 11/// The tx_init_rbf message is used to initialize a new RBF transaction.
 12/// </remarks>
 13///
 14/// <remarks>
 15/// Initializes a new instance of the TxInitRbfPayload class.
 16/// </remarks>
 17/// <param name="channelId">The channel ID.</param>
 18/// <param name="feerate">The feerate.</param>
 19/// <param name="locktime">The locktime.</param>
 20/// <seealso cref="TxInitRbfMessage"/>
 21/// <seealso cref="ValueObjects.ChannelId"/>
 2022public class TxInitRbfPayload(ChannelId channelId, uint feerate, uint locktime) : IMessagePayload
 23{
 24    /// <summary>
 25    /// The channel ID.
 26    /// </summary>
 3627    public ChannelId ChannelId { get; } = channelId;
 28
 29    /// <summary>
 30    /// The locktime.
 31    /// </summary>
 3632    public uint Locktime { get; } = locktime;
 33
 34    /// <summary>
 35    /// The feerate.
 36    /// </summary>
 3637    public uint Feerate { get; } = feerate;
 38}