< 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: 36_15743069263
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 37
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
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Channels.ValueObjects;
 4using Crypto.ValueObjects;
 5using Interfaces;
 6using Money;
 7
 8/// <summary>
 9/// Represents the payload for the closing_signed message.
 10/// </summary>
 11/// <remarks>
 12/// Initializes a new instance of the ClosingSignedPayload class.
 13/// </remarks>
 14public class ClosingSignedPayload : IChannelMessagePayload
 15{
 16    /// <summary>
 17    /// The channel_id is used to identify this channel.
 18    /// </summary>
 2019    public ChannelId ChannelId { get; set; }
 20
 21    /// <summary>
 22    /// funding_satoshis is the amount the acceptor is putting into the channel.
 23    /// </summary>
 2024    public LightningMoney FeeAmount { get; set; }
 25
 26    /// <summary>
 27    /// The signature for the closing transaction
 28    /// </summary>
 829    public CompactSignature Signature { get; }
 30
 1231    public ClosingSignedPayload(ChannelId channelId, LightningMoney feeAmount, CompactSignature signature)
 32    {
 1233        ChannelId = channelId;
 1234        FeeAmount = feeAmount;
 1235        Signature = signature;
 1236    }
 37}