< Summary - Combined Code Coverage

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

File(s)

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

#LineLine coverage
 1using NBitcoin.Crypto;
 2
 3namespace NLightning.Domain.Protocol.Payloads;
 4
 5using Interfaces;
 6using Money;
 7using ValueObjects;
 8
 9/// <summary>
 10/// Represents the payload for the closing_signed message.
 11/// </summary>
 12/// <remarks>
 13/// Initializes a new instance of the ClosingSignedPayload class.
 14/// </remarks>
 15public class ClosingSignedPayload : IMessagePayload
 16{
 17    /// <summary>
 18    /// The channel_id is used to identify this channel.
 19    /// </summary>
 2020    public ChannelId ChannelId { get; set; }
 21
 22    /// <summary>
 23    /// funding_satoshis is the amount the acceptor is putting into the channel.
 24    /// </summary>
 2025    public LightningMoney FeeAmount { get; set; }
 26
 27    /// <summary>
 28    /// The signature for the closing transaction
 29    /// </summary>
 830    public ECDSASignature Signature { get; }
 31
 1232    public ClosingSignedPayload(ChannelId channelId, LightningMoney feeAmount, ECDSASignature signature)
 33    {
 1234        ChannelId = channelId;
 1235        FeeAmount = feeAmount;
 1236        Signature = signature;
 1237    }
 38}