< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Channels.ValueObjects.ChannelSigningInfo
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Channels/ValueObjects/ChannelSigningInfo.cs
Tag: 49_19945309242
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 29
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_FundingTxId()100%11100%
get_FundingOutputIndex()100%11100%
get_FundingSatoshis()100%11100%
get_LocalFundingPubKey()100%11100%
get_RemoteFundingPubKey()100%11100%
get_ChannelKeyIndex()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Channels/ValueObjects/ChannelSigningInfo.cs

#LineLine coverage
 1namespace NLightning.Domain.Channels.ValueObjects;
 2
 3using Bitcoin.ValueObjects;
 4using Crypto.ValueObjects;
 5
 6/// <summary>
 7/// Information needed by the signer for a specific channel
 8/// </summary>
 9public record struct ChannelSigningInfo
 10{
 20811    public TxId FundingTxId { get; init; }
 34012    public ushort FundingOutputIndex { get; init; }
 20813    public ulong FundingSatoshis { get; init; }
 20814    public CompactPubKey LocalFundingPubKey { get; init; }
 27615    public CompactPubKey RemoteFundingPubKey { get; init; }
 14016    public uint ChannelKeyIndex { get; init; } // For deterministic key derivation
 17
 18    public ChannelSigningInfo(TxId fundingTxId, ushort fundingOutputIndex, ulong fundingSatoshis,
 19                              CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey,
 20                              uint channelKeyIndex)
 21    {
 7622        FundingTxId = fundingTxId;
 7623        FundingOutputIndex = fundingOutputIndex;
 7624        FundingSatoshis = fundingSatoshis;
 7625        LocalFundingPubKey = localFundingPubKey;
 7626        RemoteFundingPubKey = remoteFundingPubKey;
 7627        ChannelKeyIndex = channelKeyIndex;
 7628    }
 29}