< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Description.MessageDirectionHelper
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Description/MessageDirection.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 24
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%22100%
Opposite(...)100%22100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Description/MessageDirection.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.Description
 5{
 6    public enum MessageDirection
 7    {
 8        Input = 0,
 9        Output = 1,
 10    }
 11
 12    internal static class MessageDirectionHelper
 13    {
 14        internal static bool IsDefined(MessageDirection value)
 15        {
 520916            return (value == MessageDirection.Input || value == MessageDirection.Output);
 17        }
 18
 19        internal static MessageDirection Opposite(MessageDirection d)
 20        {
 336621            return d == MessageDirection.Input ? MessageDirection.Output : MessageDirection.Input;
 22        }
 23    }
 24}