< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.SecurityProtocolHelper
Assembly: CoreWCF.Kafka
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/Helpers/SecurityProtocolHelper.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 17
Line coverage: 100%
Branch coverage
100%
Covered branches: 6
Total branches: 6
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%66100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/Helpers/SecurityProtocolHelper.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
 4using Confluent.Kafka;
 5
 6namespace CoreWCF.Channels;
 7
 8internal static class SecurityProtocolHelper
 9{
 10    public static bool IsDefined(SecurityProtocol value)
 11    {
 4412        return value == SecurityProtocol.Plaintext
 4413               || value == SecurityProtocol.Ssl
 4414               || value == SecurityProtocol.SaslPlaintext
 4415               ||value == SecurityProtocol.SaslSsl;
 16    }
 17}