< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Bitcoin.Transactions.Models.FundingTransactionModel
Assembly: NLightning.Domain
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Domain/Bitcoin/Transactions/Models/FundingTransactionModel.cs
Tag: 57_24045730253
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 44
Line coverage: 0%
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_Utxos()100%210%
get_FundingOutput()100%210%
get_TransactionId()100%210%
get_Fee()100%210%
get_ChangeAddress()100%210%
get_ChangeAmount()100%210%
.ctor(...)100%210%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Domain/Bitcoin/Transactions/Models/FundingTransactionModel.cs

#LineLine coverage
 1namespace NLightning.Domain.Bitcoin.Transactions.Models;
 2
 3using Money;
 4using Outputs;
 5using ValueObjects;
 6using Wallet.Models;
 7
 8/// <summary>
 9/// Represents a funding transaction in the domain model.
 10/// This class encapsulates the logical structure of a Lightning Network funding transaction
 11/// as defined by BOLT specifications, without dependencies on specific Bitcoin libraries.
 12/// </summary>
 13public class FundingTransactionModel
 14{
 15    /// <summary>
 16    /// Gets the outputs to be spent by this transaction.
 17    /// </summary>
 018    public IEnumerable<UtxoModel> Utxos { get; }
 19
 20    /// <summary>
 21    /// Gets the funding output that this transaction pays to.
 22    /// </summary>
 023    public FundingOutputInfo FundingOutput { get; }
 24
 25    /// <summary>
 26    /// Gets or sets the transaction ID after the transaction is constructed.
 27    /// </summary>
 028    public TxId? TransactionId { get; set; }
 29
 30    /// <summary>
 31    /// Gets the total fee for this transaction.
 32    /// </summary>
 033    public LightningMoney Fee { get; }
 34
 035    public WalletAddressModel? ChangeAddress { get; set; }
 036    public LightningMoney? ChangeAmount { get; set; }
 37
 038    public FundingTransactionModel(IEnumerable<UtxoModel> utxos, FundingOutputInfo fundingOutput, LightningMoney fee)
 39    {
 040        Utxos = utxos;
 041        FundingOutput = fundingOutput;
 042        Fee = fee;
 043    }
 44}