< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.ServiceModel.Channels.PartitionerHelper
Assembly: CoreWCF.Kafka.Client
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka.Client/src/CoreWCF/ServiceModel/Channels/Helpers/PartitionerHelper.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 18
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 8
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%880%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka.Client/src/CoreWCF/ServiceModel/Channels/Helpers/PartitionerHelper.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 PartitionerHelper
 9{
 10    public static bool IsDefined(Partitioner value)
 11    {
 012        return value == Partitioner.Consistent
 013               || value == Partitioner.Murmur2
 014               || value == Partitioner.Random
 015               || value == Partitioner.ConsistentRandom
 016               || value == Partitioner.Murmur2Random;
 17    }
 18}