< Summary - Combined Code Coverage

Information
Class: NLightning.Infrastructure.Transport.Events.NewPeerConnectedEventArgs
Assembly: NLightning.Infrastructure
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Infrastructure/Transport/Events/NewPeerConnectedEventArgs.cs
Tag: 57_24045730253
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 28
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_Host()100%210%
get_Port()100%210%
get_TcpClient()100%210%
.ctor(...)100%210%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Infrastructure/Transport/Events/NewPeerConnectedEventArgs.cs

#LineLine coverage
 1using System.Net.Sockets;
 2
 3namespace NLightning.Infrastructure.Transport.Events;
 4
 5public class NewPeerConnectedEventArgs : EventArgs
 6{
 7    /// <summary>
 8    /// Gets the host address of the connected peer.
 9    /// </summary>
 010    public string Host { get; }
 11
 12    /// <summary>
 13    /// Gets the port number of the connected peer.
 14    /// </summary>
 015    public uint Port { get; }
 16
 17    /// <summary>
 18    /// Gets the TCP client associated with the newly connected peer.
 19    /// </summary>
 020    public TcpClient TcpClient { get; }
 21
 022    public NewPeerConnectedEventArgs(string host, uint port, TcpClient tcpClient)
 23    {
 024        Host = host;
 025        Port = port;
 026        TcpClient = tcpClient;
 027    }
 28}