< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Bitcoin.Transactions.Outputs.FundingOutputInfo
Assembly: NLightning.Domain
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Domain/Bitcoin/Transactions/Outputs/FundingOutputInfo.cs
Tag: 57_24045730253
Line coverage
93%
Covered lines: 14
Uncovered lines: 1
Coverable lines: 15
Total lines: 33
Line coverage: 93.3%
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_Amount()100%11100%
get_LocalFundingPubKey()100%11100%
get_RemoteFundingPubKey()100%11100%
get_OutputType()100%210%
get_TransactionId()100%11100%
get_Index()100%11100%
.ctor(...)100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Domain/Bitcoin/Transactions/Outputs/FundingOutputInfo.cs

#LineLine coverage
 1namespace NLightning.Domain.Bitcoin.Transactions.Outputs;
 2
 3using Crypto.ValueObjects;
 4using Enums;
 5using Interfaces;
 6using Money;
 7using ValueObjects;
 8
 9public class FundingOutputInfo : IOutputInfo
 10{
 12811    public LightningMoney Amount { get; }
 42012    public CompactPubKey LocalFundingPubKey { get; set; }
 42013    public CompactPubKey RemoteFundingPubKey { get; set; }
 14
 015    public OutputType OutputType => OutputType.Funding;
 70016    public TxId? TransactionId { get; set; }
 55617    public ushort? Index { get; set; }
 18
 29219    public FundingOutputInfo(LightningMoney amount, CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey)
 20    {
 29221        Amount = amount;
 29222        LocalFundingPubKey = localFundingPubKey;
 29223        RemoteFundingPubKey = remoteFundingPubKey;
 29224    }
 25
 26    public FundingOutputInfo(LightningMoney amount, CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey,
 27                             TxId transactionId, ushort index)
 13228        : this(amount, localFundingPubKey, remoteFundingPubKey)
 29    {
 13230        TransactionId = transactionId;
 13231        Index = index;
 13232    }
 33}