< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Messages.PingMessage
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Messages/PingMessage.cs
Tag: 36_15743069263
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 24
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_Payload()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Messages/PingMessage.cs

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Messages;
 2
 3using Constants;
 4using Payloads;
 5
 6/// <summary>
 7/// Represents a ping message.
 8/// </summary>
 9/// <remarks>
 10/// The ping message is used to check if the other party is still alive.
 11/// The message type is 18.
 12/// </remarks>
 813public sealed class PingMessage() : BaseMessage(MessageTypes.Ping, new PingPayload())
 14{
 15    /// <summary>
 16    /// The payload of the message.
 17    /// </summary>
 818    public new PingPayload Payload => (PingPayload)base.Payload;
 19
 820    internal PingMessage(PingPayload payload) : this()
 21    {
 822        base.Payload = payload;
 823    }
 24}