< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.KafkaMessageEncodingHelper
Assembly: CoreWCF.Kafka
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaMessageEncoding.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 25
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
IsDefined(...)100%22100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaMessageEncoding.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 KafkaMessageEncoding
 7{
 8    /// <summary>
 9    /// Indicates using Binary message encoder.
 10    /// </summary>
 11    Binary,
 12
 13    /// <summary>
 14    /// Indicates using Text message encoder.
 15    /// </summary>
 16    Text,
 17}
 18
 19internal static class KafkaMessageEncodingHelper
 20{
 21    public static bool IsDefined(KafkaMessageEncoding value)
 22    {
 223        return value == KafkaMessageEncoding.Binary || value == KafkaMessageEncoding.Text;
 24    }
 25}