< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Payloads.InitPayload
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/InitPayload.cs
Tag: 36_15743069263
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 22
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_FeatureSet()100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/InitPayload.cs

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Interfaces;
 4using Messages;
 5using Node;
 6
 7/// <summary>
 8/// The init payload.
 9/// </summary>
 10/// <remarks>
 11/// The init payload is used to communicate the features supported by the node.
 12/// </remarks>
 13/// <param name="featureSet">The features supported by the node.</param>
 14/// <seealso cref="InitMessage"/>
 15/// <seealso cref="FeatureSet"/>
 2816public class InitPayload(FeatureSet featureSet) : IMessagePayload
 17{
 18    /// <summary>
 19    /// The features supported by the node.
 20    /// </summary>
 6021    public FeatureSet FeatureSet { get; } = featureSet;
 22}