< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.SaslMechanismHelper
Assembly: CoreWCF.Kafka
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/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/src/CoreWCF/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.Channels;
 7
 8internal static class SaslMechanismHelper
 9{
 10    public static bool IsDefined(SaslMechanism value)
 11    {
 412        return value == SaslMechanism.Plain
 413               || value == SaslMechanism.Gssapi
 414               || value == SaslMechanism.ScramSha256
 415               || value == SaslMechanism.ScramSha512
 416               || value == SaslMechanism.OAuthBearer;
 17    }
 18}