< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.KafkaErrorHandlingStrategyHelper
Assembly: CoreWCF.Kafka
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaErrorHandlingStrategy.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 19
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
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%22100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaErrorHandlingStrategy.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
 4namespace CoreWCF.Channels;
 5
 6public enum KafkaErrorHandlingStrategy
 7{
 8    Ignore,
 9    DeadLetterQueue
 10}
 11
 12internal static class KafkaErrorHandlingStrategyHelper
 13{
 14    public static bool IsDefined(KafkaErrorHandlingStrategy value)
 15    {
 216        return value == KafkaErrorHandlingStrategy.Ignore
 217               || value == KafkaErrorHandlingStrategy.DeadLetterQueue;
 18    }
 19}