< 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: 30_15166811759
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 41
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_PubKey()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
 1using NBitcoin;
 2
 3namespace NLightning.Domain.Models;
 4
 5using ValueObjects;
 6
 7/// <summary>
 8/// Represents routing information for a payment
 9/// </summary>
 10/// <param name="pubKey">The public key of the node</param>
 11/// <param name="shortChannelId">The short channel id of the channel</param>
 12/// <param name="feeBaseMsat">The base fee in millisatoshis</param>
 13/// <param name="feeProportionalMillionths">The proportional fee in millionths</param>
 14/// <param name="cltvExpiryDelta">The CLTV expiry delta</param>
 8015public sealed class RoutingInfo(PubKey pubKey, ShortChannelId shortChannelId, int feeBaseMsat, int feeProportionalMillio
 16{
 17    /// <summary>
 18    /// The public key of the node
 19    /// </summary>
 14020    public PubKey PubKey { get; } = pubKey;
 21
 22    /// <summary>
 23    /// The short channel id of the channel
 24    /// </summary>
 13225    public ShortChannelId ShortChannelId { get; } = shortChannelId;
 26
 27    /// <summary>
 28    /// The base fee in millisatoshis
 29    /// </summary>
 15630    public int FeeBaseMsat { get; } = feeBaseMsat;
 31
 32    /// <summary>
 33    /// The proportional fee in millionths
 34    /// </summary>
 14435    public int FeeProportionalMillionths { get; } = feeProportionalMillionths;
 36
 37    /// <summary>
 38    /// The CLTV expiry delta
 39    /// </summary>
 14440    public short CltvExpiryDelta { get; } = cltvExpiryDelta;
 41}