< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.WebContentFormatHelper
Assembly: CoreWCF.WebHttp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/Channels/WebContentFormatHelper.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 16
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.WebHttp/src/CoreWCF/Channels/WebContentFormatHelper.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.Channels
 5{
 6    internal static class WebContentFormatHelper
 7    {
 8        internal static bool IsDefined(WebContentFormat format)
 9        {
 010            return (format == WebContentFormat.Default
 011                || format == WebContentFormat.Xml
 012                || format == WebContentFormat.Json
 013                || format == WebContentFormat.Raw);
 14        }
 15    }
 16}