< Summary - CoreWCF Coverage — PR #1766

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/Helpers/PartitionAssignmentStrategyHelper.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 PartitionAssignmentStrategyHelper
 9{
 10    public static bool IsDefined(PartitionAssignmentStrategy value)
 11    {
 012        return value == PartitionAssignmentStrategy.Range
 013               || value == PartitionAssignmentStrategy.CooperativeSticky
 014               || value == PartitionAssignmentStrategy.RoundRobin;
 15
 16    }
 17}