< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.KafkaMessageContext
Assembly: CoreWCF.Kafka
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaMessageContext.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 19
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
OnRequestMessageSet(...)100%22100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaMessageContext.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 CoreWCF.Queue.Common;
 5
 6namespace CoreWCF.Channels;
 7
 8internal class KafkaMessageContext : QueueMessageContext
 9{
 10    protected override void OnRequestMessageSet(Message message)
 11    {
 70812        if (IsRegexSubscription)
 13        {
 2014            message.Headers.To = LocalAddress.Uri;
 15        }
 70816    }
 17
 142118    internal bool IsRegexSubscription { get; set; }
 19}