< Summary

Information
Class: System.Net.Security.SslClientHelloInfo
Assembly: System.Net.Security
File(s): D:\runner\runtime\src\libraries\System.Net.Security\src\System\Net\Security\SslClientHelloInfo.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 22
Line coverage: 66.6%
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 Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

D:\runner\runtime\src\libraries\System.Net.Security\src\System\Net\Security\SslClientHelloInfo.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Security.Authentication;
 5
 6namespace System.Net.Security
 7{
 8    /// <summary>
 9    /// This struct contains information from received TLS Client Hello frame.
 10    /// </summary>
 11    public readonly struct SslClientHelloInfo
 12    {
 013        public readonly string ServerName { get; }
 014        public readonly SslProtocols SslProtocols { get; }
 15
 16        public SslClientHelloInfo(string serverName, SslProtocols sslProtocols)
 217        {
 218            ServerName = serverName;
 219            SslProtocols = sslProtocols;
 220        }
 21    }
 22}