< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.ReleaseInstanceModeHelper
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ReleaseInstanceMode.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 26
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 6
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%660%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/ReleaseInstanceMode.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 ReleaseInstanceMode
 7    {
 8        None = 0,
 9        BeforeCall = 1,
 10        AfterCall = 2,
 11        BeforeAndAfterCall = 3,
 12    }
 13
 14    internal static class ReleaseInstanceModeHelper
 15    {
 16        public static bool IsDefined(ReleaseInstanceMode x)
 17        {
 018            return
 019                x == ReleaseInstanceMode.None ||
 020                x == ReleaseInstanceMode.BeforeCall ||
 021                x == ReleaseInstanceMode.AfterCall ||
 022                x == ReleaseInstanceMode.BeforeAndAfterCall ||
 023                false;
 24        }
 25    }
 26}