< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.SecurityModeHelper
Assembly: CoreWCF.NetTcp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/Common/src/CoreWCF/SecurityModeHelper.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 16
Line coverage: 100%
Branch coverage
100%
Covered branches: 6
Total branches: 6
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
IsDefined(...)100%66100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/Common/src/CoreWCF/SecurityModeHelper.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
 4namespace CoreWCF
 5{
 6    internal static class SecurityModeHelper
 7    {
 8        internal static bool IsDefined(SecurityMode value)
 9        {
 10910            return (value == SecurityMode.None ||
 10911                value == SecurityMode.Transport ||
 10912                value == SecurityMode.Message ||
 10913                value == SecurityMode.TransportWithMessageCredential);
 14        }
 15    }
 16}

Methods/Properties

IsDefined(CoreWCF.SecurityMode)