< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.OperationFormatStyleHelper
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/OperationFormatStyle.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 22
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
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(...)50%22100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/OperationFormatStyle.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 OperationFormatStyle
 7    {
 8        Document,
 9        Rpc,
 10    }
 11
 12    internal static class OperationFormatStyleHelper
 13    {
 14        public static bool IsDefined(OperationFormatStyle x)
 15        {
 18316            return
 18317                x == OperationFormatStyle.Document ||
 18318                x == OperationFormatStyle.Rpc ||
 18319                false;
 20        }
 21    }
 22}