< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Protocol.Payloads.TxAbortPayload
Assembly: NLightning.Domain
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Domain/Protocol/Payloads/TxAbortPayload.cs
Tag: 30_15166811759
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
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_ChannelId()100%11100%
get_Data()100%11100%

File(s)

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

#LineLine coverage
 1namespace NLightning.Domain.Protocol.Payloads;
 2
 3using Interfaces;
 4using ValueObjects;
 5
 6/// <summary>
 7/// Represents the payload for the tx_abort message.
 8/// </summary>
 9/// <remarks>
 10/// Initializes a new instance of the TxAbortPayload class.
 11/// </remarks>
 12/// <param name="channelId">The channel ID.</param>
 13/// <param name="data">The data.</param>
 814public class TxAbortPayload(ChannelId channelId, byte[] data) : IMessagePayload
 15{
 16    /// <summary>
 17    /// Gets the channel ID.
 18    /// </summary>
 1619    public ChannelId ChannelId { get; } = channelId;
 20
 21    /// <summary>
 22    /// Gets the data.
 23    /// </summary>
 2024    public byte[] Data { get; } = data;
 25}