< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.ServiceModel.Channels.SaslMechanismHelper
Assembly: CoreWCF.Kafka.Client
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka.Client/src/CoreWCF/ServiceModel/Channels/Helpers/SaslMechanismHelper.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 18
Line coverage: 100%
Branch coverage
50%
Covered branches: 4
Total branches: 8
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
IsDefined(...)50%88100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka.Client/src/CoreWCF/ServiceModel/Channels/Helpers/SaslMechanismHelper.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 SaslMechanismHelper
 9{
 10    public static bool IsDefined(SaslMechanism value)
 11    {
 212        return value == SaslMechanism.Plain
 213               || value == SaslMechanism.Gssapi
 214               || value == SaslMechanism.ScramSha256
 215               || value == SaslMechanism.ScramSha512
 216               || value == SaslMechanism.OAuthBearer;
 17    }
 18}