< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Payloads.FundingSignedPayload
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/FundingSignedPayload.cs
Tag: 36_15743069263
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 31
Line coverage: 66.6%
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%210%
get_Signature()100%210%
.ctor(...)100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/FundingSignedPayload.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 funding_created message.
 9/// </summary>
 10/// <remarks>
 11/// Initializes a new instance of the FundingCreatedPayload class.
 12/// </remarks>
 13public class FundingSignedPayload : IChannelMessagePayload
 14{
 15    /// <summary>
 16    /// The channel_id is used to identify this channel on a per-peer basis until the funding transaction
 17    /// is established, at which point it is replaced by the channel_id, which is derived from the funding transaction.
 18    /// </summary>
 019    public ChannelId ChannelId { get; }
 20
 21    /// <summary>
 22    /// The signature of the funding transaction.
 23    /// </summary>
 024    public CompactSignature Signature { get; }
 25
 2426    public FundingSignedPayload(ChannelId channelId, CompactSignature signature)
 27    {
 2428        ChannelId = channelId;
 2429        Signature = signature;
 2430    }
 31}