< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.NegotiateInternal.NTAuthenticationFacade
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NegotiateInternal/NTAuthenticationFacade.cs
Line coverage
83%
Covered lines: 5
Uncovered lines: 1
Coverable lines: 6
Total lines: 20
Line coverage: 83.3%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%11100%
Build()50%2280%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NegotiateInternal/NTAuthenticationFacade.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;
 5
 6namespace CoreWCF.Security.NegotiateInternal
 7{
 8    internal static class NTAuthenticationFacade
 9    {
 110        private static readonly int s_runtimeMajorVersion = Environment.Version.Major;
 11
 12        internal static INTAuthenticationFacade Build() =>
 13
 114            s_runtimeMajorVersion switch
 115            {
 116                >= 8 => new NTAuthenticationNet8(),
 017                _ => throw new PlatformNotSupportedException($"Unsupported runtime version: {Environment.Version}")
 118            };
 19    }
 20}

Methods/Properties

.cctor()
Build()