< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.ServiceModel.Channels.SecurityProtocolHelper
Assembly: CoreWCF.Kafka.Client
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka.Client/src/CoreWCF/ServiceModel/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.Client/src/CoreWCF/ServiceModel/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.ServiceModel.Channels;
 7
 8internal static class SecurityProtocolHelper
 9{
 10    public static bool IsDefined(SecurityProtocol value)
 11    {
 3912        return value == SecurityProtocol.Plaintext
 3913               || value == SecurityProtocol.Ssl
 3914               || value == SecurityProtocol.SaslPlaintext
 3915               ||value == SecurityProtocol.SaslSsl;
 16    }
 17}