< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Channels.ValueObjects.ChannelConfig
Assembly: NLightning.Domain
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Domain/Channels/ValueObjects/ChannelConfig.cs
Tag: 57_24045730253
Line coverage
74%
Covered lines: 20
Uncovered lines: 7
Coverable lines: 27
Total lines: 44
Line coverage: 74%
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

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Domain/Channels/ValueObjects/ChannelConfig.cs

#LineLine coverage
 1namespace NLightning.Domain.Channels.ValueObjects;
 2
 3using Bitcoin.ValueObjects;
 4using Domain.Enums;
 5using Money;
 6
 7public readonly record struct ChannelConfig
 8{
 1369    public LightningMoney ChannelReserveAmount { get; }
 6810    public LightningMoney LocalDustLimitAmount { get; }
 18811    public LightningMoney FeeRateAmountPerKw { get; }
 012    public LightningMoney HtlcMinimumAmount { get; }
 013    public ushort MaxAcceptedHtlcs { get; }
 014    public LightningMoney MaxHtlcAmountInFlight { get; }
 015    public uint MinimumDepth { get; }
 25616    public bool OptionAnchorOutputs { get; }
 6817    public LightningMoney RemoteDustLimitAmount { get; }
 6018    public ushort ToSelfDelay { get; }
 019    public FeatureSupport UseScidAlias { get; }
 020    public BitcoinScript? LocalUpfrontShutdownScript { get; }
 021    public BitcoinScript? RemoteShutdownScriptPubKey { get; }
 22
 23    public ChannelConfig(LightningMoney channelReserveAmount, LightningMoney feeRateAmountPerKw,
 24                         LightningMoney htlcMinimumAmount, LightningMoney localDustLimitAmount,
 25                         ushort maxAcceptedHtlcs, LightningMoney maxHtlcAmountInFlight, uint minimumDepth,
 26                         bool optionAnchorOutputs, LightningMoney remoteDustLimitAmount, ushort toSelfDelay,
 27                         FeatureSupport useScidAlias, BitcoinScript? localUpfrontShutdownScript = null,
 28                         BitcoinScript? remoteShutdownScriptPubKey = null)
 29    {
 6830        ChannelReserveAmount = channelReserveAmount;
 6831        FeeRateAmountPerKw = feeRateAmountPerKw;
 6832        HtlcMinimumAmount = htlcMinimumAmount;
 6833        LocalDustLimitAmount = localDustLimitAmount;
 6834        MaxAcceptedHtlcs = maxAcceptedHtlcs;
 6835        MaxHtlcAmountInFlight = maxHtlcAmountInFlight;
 6836        MinimumDepth = minimumDepth;
 6837        OptionAnchorOutputs = optionAnchorOutputs;
 6838        RemoteDustLimitAmount = remoteDustLimitAmount;
 6839        ToSelfDelay = toSelfDelay;
 6840        UseScidAlias = useScidAlias;
 6841        LocalUpfrontShutdownScript = localUpfrontShutdownScript;
 6842        RemoteShutdownScriptPubKey = remoteShutdownScriptPubKey;
 6843    }
 44}