< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.MessageProtectionOrderHelper
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/MessageProtectionOrder.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 22
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 4
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%440%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/MessageProtectionOrder.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.Security
 5{
 6    public enum MessageProtectionOrder
 7    {
 8        SignBeforeEncrypt,
 9        SignBeforeEncryptAndEncryptSignature,
 10        EncryptBeforeSign,
 11    }
 12
 13    internal static class MessageProtectionOrderHelper
 14    {
 15        internal static bool IsDefined(MessageProtectionOrder value)
 16        {
 017            return value == MessageProtectionOrder.SignBeforeEncrypt
 018                || value == MessageProtectionOrder.SignBeforeEncryptAndEncryptSignature
 019                || value == MessageProtectionOrder.EncryptBeforeSign;
 20        }
 21    }
 22}