< Summary - Combined Code Coverage

Information
Class: NLightning.Transport.Ipc.IpcEnvelope
Assembly: NLightning.Transport.Ipc
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Transport.Ipc/IpcEnvelope.cs
Tag: 57_24045730253
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 26
Line coverage: 0%
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
get_Version()100%210%
get_Command()100%210%
get_CorrelationId()100%210%
get_AuthToken()100%210%
get_Payload()100%210%
get_Kind()100%210%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Transport.Ipc/IpcEnvelope.cs

#LineLine coverage
 1using MessagePack;
 2
 3namespace NLightning.Transport.Ipc;
 4
 5using Domain.Client.Enums;
 6
 7/// <summary>
 8/// Envelope for all IPC messages, request and response, encoded with MessagePack.
 9/// </summary>
 10[MessagePackObject]
 11public sealed class IpcEnvelope
 12{
 013    [Key(0)] public int Version { get; set; } = 1;
 014    [Key(1)] public ClientCommand Command { get; init; }
 15
 016    [Key(2)] public Guid CorrelationId { get; set; } = Guid.NewGuid();
 17
 18    // Auth token derived from a local cookie file (only accessible locally) to secure the channel
 019    [Key(3)] public string? AuthToken { get; init; }
 20
 21    // Raw payload serialized with MessagePack separately for the specific request/response type
 022    [Key(4)] public byte[] Payload { get; set; } = Array.Empty<byte>();
 23
 24    // 0 = request, 1 = response, 2 = error
 025    [Key(5)] public IpcEnvelopeKind Kind { get; init; }
 26}