< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.ConcurrencyModeHelper
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ConcurrencyMode.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 23
Line coverage: 100%
Branch coverage
100%
Covered branches: 4
Total branches: 4
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%44100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ConcurrencyMode.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    public enum ConcurrencyMode
 7    {
 8        Single, // This is first so it is ConcurrencyMode.default
 9        Reentrant,
 10        Multiple
 11    }
 12
 13    internal static class ConcurrencyModeHelper
 14    {
 15        public static bool IsDefined(ConcurrencyMode x)
 16        {
 26617            return
 26618                x == ConcurrencyMode.Single ||
 26619                x == ConcurrencyMode.Reentrant ||
 26620                x == ConcurrencyMode.Multiple;
 21        }
 22    }
 23}