< 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: 36_15743069263
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 28
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
get_Host()100%11100%
get_Port()100%11100%
get_TcpClient()100%11100%
.ctor(...)100%11100%

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>
 810    public string Host { get; }
 11
 12    /// <summary>
 13    /// Gets the port number of the connected peer.
 14    /// </summary>
 815    public uint Port { get; }
 16
 17    /// <summary>
 18    /// Gets the TCP client associated with the newly connected peer.
 19    /// </summary>
 820    public TcpClient TcpClient { get; }
 21
 822    public NewPeerConnectedEventArgs(string host, uint port, TcpClient tcpClient)
 23    {
 824        Host = host;
 825        Port = port;
 826        TcpClient = tcpClient;
 827    }
 28}