< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Payloads.FundingCreatedPayload
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/FundingCreatedPayload.cs
Tag: 36_15743069263
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 45
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_FundingTxId()100%11100%
get_FundingOutputIndex()100%11100%
get_Signature()100%11100%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Bitcoin.ValueObjects;
 4using Channels.ValueObjects;
 5using Crypto.ValueObjects;
 6using Interfaces;
 7
 8/// <summary>
 9/// Represents the payload for the funding_created message.
 10/// </summary>
 11/// <remarks>
 12/// Initializes a new instance of the FundingCreatedPayload class.
 13/// </remarks>
 14public class FundingCreatedPayload : IChannelMessagePayload
 15{
 16    /// <summary>
 17    /// The temporary_channel_id is used to identify this channel on a per-peer basis until the funding transaction
 18    /// is established, at which point it is replaced by the channel_id, which is derived from the funding transaction.
 19    /// </summary>
 8820    public ChannelId ChannelId { get; }
 21
 22    /// <summary>
 23    /// The funding transaction id.
 24    /// </summary>
 2025    public TxId FundingTxId { get; }
 26
 27    /// <summary>
 28    /// The funding transaction output index.
 29    /// </summary>
 1630    public ushort FundingOutputIndex { get; }
 31
 32    /// <summary>
 33    /// The signature of the funding transaction.
 34    /// </summary>
 835    public CompactSignature Signature { get; }
 36
 2437    public FundingCreatedPayload(ChannelId channelId, TxId fundingTxId, ushort fundingOutputIndex,
 2438                                 CompactSignature signature)
 39    {
 2440        ChannelId = channelId;
 2441        FundingTxId = fundingTxId;
 2442        FundingOutputIndex = fundingOutputIndex;
 2443        Signature = signature;
 2444    }
 45}