< Summary - CoreWCF Coverage — PR #1766

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

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/Web/WebMessageBodyStyleHelper.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.Web
 5{
 6    internal static class WebMessageBodyStyleHelper
 7    {
 8        internal static bool IsDefined(WebMessageBodyStyle style)
 9        {
 88010            return (style == WebMessageBodyStyle.Bare
 88011                || style == WebMessageBodyStyle.Wrapped
 88012                || style == WebMessageBodyStyle.WrappedRequest
 88013                || style == WebMessageBodyStyle.WrappedResponse);
 14        }
 15    }
 16}