< Summary - Combined Code Coverage

Information
Class: NLightning.Transport.Ipc.MessagePack.Formatters.TxIdFormatter
Assembly: NLightning.Transport.Ipc
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Transport.Ipc/MessagePack/Formatters/TxIdFormatter.cs
Tag: 57_24045730253
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 20
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
Serialize(...)100%210%
Serialize(...)100%210%
Deserialize(...)100%210%
Deserialize(...)100%210%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Transport.Ipc/MessagePack/Formatters/TxIdFormatter.cs

#LineLine coverage
 1using MessagePack;
 2using MessagePack.Formatters;
 3
 4namespace NLightning.Transport.Ipc.MessagePack.Formatters;
 5
 6using Domain.Bitcoin.ValueObjects;
 7using Domain.Crypto.Constants;
 8
 9public class TxIdFormatter : IMessagePackFormatter<TxId>
 10{
 11    public void Serialize(ref MessagePackWriter writer, TxId value, MessagePackSerializerOptions options)
 012    {
 013        writer.WriteRaw(value);
 014    }
 15
 16    public TxId Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
 017    {
 018        return reader.ReadRaw(CryptoConstants.Sha256HashLen).FirstSpan.ToArray();
 019    }
 20}