< Summary - Combined Code Coverage

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

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Messages;
 2
 3using Constants;
 4using Payloads;
 5
 6/// <summary>
 7/// Represents a pong message.
 8/// </summary>
 9/// <remarks>
 10/// The pong message is used to respond to a ping message.
 11/// The message type is 19.
 12/// </remarks>
 13/// <param name="bytesLen">The number of bytes in the pong message.</param>
 814public sealed class PongMessage(ushort bytesLen) : BaseMessage(MessageTypes.Pong, new PongPayload(bytesLen))
 15{
 16    /// <summary>
 17    /// The payload of the message.
 18    /// </summary>
 419    public new PongPayload Payload => (PongPayload)base.Payload;
 20
 821    internal PongMessage(PongPayload payload) : this(payload.BytesLength)
 22    {
 823        base.Payload = payload;
 824    }
 25}