< 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: 57_24045730253
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{
 20011    public TxId FundingTxId { get; init; }
 20012    public ushort FundingOutputIndex { get; init; }
 20013    public ulong FundingSatoshis { get; init; }
 20014    public CompactPubKey LocalFundingPubKey { get; init; }
 26815    public CompactPubKey RemoteFundingPubKey { get; init; }
 13216    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    {
 6822        FundingTxId = fundingTxId;
 6823        FundingOutputIndex = fundingOutputIndex;
 6824        FundingSatoshis = fundingSatoshis;
 6825        LocalFundingPubKey = localFundingPubKey;
 6826        RemoteFundingPubKey = remoteFundingPubKey;
 6827        ChannelKeyIndex = channelKeyIndex;
 6828    }
 29}