< 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: 36_15743069263
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{
 13611    public LightningMoney Amount { get; }
 46412    public CompactPubKey LocalFundingPubKey { get; set; }
 46413    public CompactPubKey RemoteFundingPubKey { get; set; }
 14
 015    public OutputType OutputType => OutputType.Funding;
 84016    public TxId? TransactionId { get; set; }
 60017    public ushort? Index { get; set; }
 18
 33619    public FundingOutputInfo(LightningMoney amount, CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey)
 20    {
 33621        Amount = amount;
 33622        LocalFundingPubKey = localFundingPubKey;
 33623        RemoteFundingPubKey = remoteFundingPubKey;
 33624    }
 25
 26    public FundingOutputInfo(LightningMoney amount, CompactPubKey localFundingPubKey, CompactPubKey remoteFundingPubKey,
 27                             TxId transactionId, ushort index)
 6428        : this(amount, localFundingPubKey, remoteFundingPubKey)
 29    {
 6430        TransactionId = transactionId;
 6431        Index = index;
 6432    }
 33}