< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 24
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 Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%
GetChannelBinding(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Net.Security/src/System/Net/SslStreamContext.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.Diagnostics;
 5using System.Net.Security;
 6using System.Security.Authentication.ExtendedProtection;
 7
 8namespace System.Net
 9{
 10    internal sealed class SslStreamContext : TransportContext
 11    {
 12        private readonly SslStream _sslStream;
 13
 014        internal SslStreamContext(SslStream sslStream)
 015        {
 016            Debug.Assert(sslStream != null);
 017            _sslStream = sslStream!;
 018        }
 19
 20        public override ChannelBinding? GetChannelBinding(ChannelBindingKind kind) =>
 021            _sslStream.GetChannelBinding(kind);
 22    }
 23}
 24