< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.NetNamedPipeSecurityModeHelper
Assembly: CoreWCF.NetNamedPipe
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetNamedPipe/src/CoreWCF/NetNamedPipeSecurityMode.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 24
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
IsDefined(...)0%220%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetNamedPipe/src/CoreWCF/NetNamedPipeSecurityMode.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.Runtime.Versioning;
 5
 6namespace CoreWCF
 7{
 8    [SupportedOSPlatform("windows")]
 9    public enum NetNamedPipeSecurityMode
 10    {
 11        None,
 12        Transport
 13    }
 14
 15    internal static class NetNamedPipeSecurityModeHelper
 16    {
 17        internal static bool IsDefined(NetNamedPipeSecurityMode value)
 18        {
 019            return
 020                value == NetNamedPipeSecurityMode.Transport ||
 021                value == NetNamedPipeSecurityMode.None;
 22        }
 23    }
 24}