< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Models.RoutingInfo
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Models/RoutingInfo.cs
Tag: 36_15743069263
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 45
Line coverage: 100%
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
.ctor(...)100%11100%
get_CompactPubKey()100%11100%
get_ShortChannelId()100%11100%
get_FeeBaseMsat()100%11100%
get_FeeProportionalMillionths()100%11100%
get_CltvExpiryDelta()100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Models/RoutingInfo.cs

#LineLine coverage
 1namespace NLightning.Domain.Models;
 2
 3using Channels.ValueObjects;
 4using Crypto.ValueObjects;
 5
 6/// <summary>
 7/// Represents routing information for a payment
 8/// </summary>
 9/// <param name="compactPubKey">The public key of the node</param>
 10/// <param name="shortChannelId">The short channel id of the channel</param>
 11/// <param name="feeBaseMsat">The base fee in millisatoshis</param>
 12/// <param name="feeProportionalMillionths">The proportional fee in millionths</param>
 13/// <param name="cltvExpiryDelta">The CLTV expiry delta</param>
 8014public sealed class RoutingInfo(
 8015    CompactPubKey compactPubKey,
 8016    ShortChannelId shortChannelId,
 8017    int feeBaseMsat,
 8018    int feeProportionalMillionths,
 8019    short cltvExpiryDelta)
 20{
 21    /// <summary>
 22    /// The public key of the node
 23    /// </summary>
 14024    public CompactPubKey CompactPubKey { get; } = compactPubKey;
 25
 26    /// <summary>
 27    /// The short channel id of the channel
 28    /// </summary>
 13229    public ShortChannelId ShortChannelId { get; } = shortChannelId;
 30
 31    /// <summary>
 32    /// The base fee in millisatoshis
 33    /// </summary>
 17634    public int FeeBaseMsat { get; } = feeBaseMsat;
 35
 36    /// <summary>
 37    /// The proportional fee in millionths
 38    /// </summary>
 16439    public int FeeProportionalMillionths { get; } = feeProportionalMillionths;
 40
 41    /// <summary>
 42    /// The CLTV expiry delta
 43    /// </summary>
 16444    public short CltvExpiryDelta { get; } = cltvExpiryDelta;
 45}