< Summary - Combined Code Coverage

Information
Class: NLightning.Infrastructure.Bitcoin.Outputs.BaseHtlcOutput
Assembly: NLightning.Infrastructure.Bitcoin
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Infrastructure.Bitcoin/Outputs/BaseHtlcOutput.cs
Tag: 30_15166811759
Line coverage
50%
Covered lines: 7
Uncovered lines: 7
Coverable lines: 14
Total lines: 31
Line coverage: 50%
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_RevocationPubKey()100%11100%
get_RemoteHtlcPubKey()100%11100%
get_LocalHtlcPubKey()100%11100%
get_PaymentHash()100%11100%
get_CltvExpiry()100%11100%
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Infrastructure.Bitcoin/Outputs/BaseHtlcOutput.cs

#LineLine coverage
 1using System.Diagnostics.CodeAnalysis;
 2using NBitcoin;
 3
 4namespace NLightning.Infrastructure.Bitcoin.Outputs;
 5
 6using Domain.Money;
 7
 8public abstract class BaseHtlcOutput : BaseOutput
 9{
 47210    public required PubKey RevocationPubKey { get; init; }
 47211    public required PubKey RemoteHtlcPubKey { get; init; }
 47212    public required PubKey LocalHtlcPubKey { get; init; }
 47213    public ReadOnlyMemory<byte> PaymentHash { get; set; }
 51214    public required ulong CltvExpiry { get; init; }
 15
 47216    protected BaseHtlcOutput(Script redeemScript, LightningMoney amount) : base(redeemScript, amount)
 47217    { }
 18
 19    [SetsRequiredMembers]
 20    protected BaseHtlcOutput(Script redeemScript, LightningMoney amount, PubKey revocationPubKey,
 21                             PubKey remoteHtlcPubKey, PubKey localHtlcPubKey, ReadOnlyMemory<byte> paymentHash,
 22                             ulong cltvExpiry)
 023        : base(redeemScript, amount)
 24    {
 025        RevocationPubKey = revocationPubKey;
 026        RemoteHtlcPubKey = remoteHtlcPubKey;
 027        LocalHtlcPubKey = localHtlcPubKey;
 028        PaymentHash = paymentHash;
 029        CltvExpiry = cltvExpiry;
 030    }
 31}