< 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: 36_15743069263
Line coverage
85%
Covered lines: 23
Uncovered lines: 4
Coverable lines: 27
Total lines: 44
Line coverage: 85.1%
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{
 1569    public LightningMoney? ChannelReserveAmount { get; }
 6810    public LightningMoney LocalDustLimitAmount { get; }
 18811    public LightningMoney FeeRateAmountPerKw { get; }
 012    public LightningMoney HtlcMinimumAmount { get; }
 2013    public ushort MaxAcceptedHtlcs { get; }
 2014    public LightningMoney MaxHtlcAmountInFlight { get; }
 2415    public uint MinimumDepth { get; }
 25616    public bool OptionAnchorOutputs { get; }
 6817    public LightningMoney RemoteDustLimitAmount { get; }
 8018    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    {
 11230        ChannelReserveAmount = channelReserveAmount;
 11231        FeeRateAmountPerKw = feeRateAmountPerKw;
 11232        HtlcMinimumAmount = htlcMinimumAmount;
 11233        LocalDustLimitAmount = localDustLimitAmount;
 11234        MaxAcceptedHtlcs = maxAcceptedHtlcs;
 11235        MaxHtlcAmountInFlight = maxHtlcAmountInFlight;
 11236        MinimumDepth = minimumDepth;
 11237        OptionAnchorOutputs = optionAnchorOutputs;
 11238        RemoteDustLimitAmount = remoteDustLimitAmount;
 11239        ToSelfDelay = toSelfDelay;
 11240        UseScidAlias = useScidAlias;
 11241        LocalUpfrontShutdownScript = localUpfrontShutdownScript;
 11242        RemoteShutdownScriptPubKey = remoteShutdownScriptPubKey;
 11243    }
 44}