< 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: 36_15743069263
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{
 14810    public required PubKey RevocationPubKey { get; init; }
 14811    public required PubKey RemoteHtlcPubKey { get; init; }
 14812    public required PubKey LocalHtlcPubKey { get; init; }
 14813    public ReadOnlyMemory<byte> PaymentHash { get; set; }
 18014    public required ulong CltvExpiry { get; init; }
 15
 14816    protected BaseHtlcOutput(LightningMoney amount, Script redeemScript) : base(amount, redeemScript)
 14817    { }
 18
 19    [SetsRequiredMembers]
 20    protected BaseHtlcOutput(LightningMoney amount, ulong cltvExpiry, PubKey localHtlcPubKey,
 21                             ReadOnlyMemory<byte> paymentHash, Script redeemScript, PubKey remoteHtlcPubKey,
 22                             PubKey revocationPubKey)
 023        : base(amount, redeemScript)
 24    {
 025        RevocationPubKey = revocationPubKey;
 026        RemoteHtlcPubKey = remoteHtlcPubKey;
 027        LocalHtlcPubKey = localHtlcPubKey;
 028        PaymentHash = paymentHash;
 029        CltvExpiry = cltvExpiry;
 030    }
 31}