< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.AuthenticationSchemesHelper
Assembly: CoreWCF.Http
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/Channels/AuthenticationSchemesHelper.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 20
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 Cyclomatic complexity NPath complexity Sequence coverage
IsSet(...)100%11100%
IsNotSet(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/Channels/AuthenticationSchemesHelper.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.Net;
 5
 6namespace CoreWCF.Channels
 7{
 8    internal static class AuthenticationSchemesHelper
 9    {
 10        public static bool IsSet(this AuthenticationSchemes thisPtr, AuthenticationSchemes authenticationSchemes)
 11        {
 4012            return (thisPtr & authenticationSchemes) == authenticationSchemes;
 13        }
 14
 15        public static bool IsNotSet(this AuthenticationSchemes thisPtr, AuthenticationSchemes authenticationSchemes)
 16        {
 242117            return (thisPtr & authenticationSchemes) == 0;
 18        }
 19    }
 20}