< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Queue.Common.Configuration.QueueBaseTransportBindingElement
Assembly: CoreWCF.Queue
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Queue/src/CoreWCF/Queue/Common/Configuration/QueueBaseTransportBindingElement.cs
Line coverage
85%
Covered lines: 6
Uncovered lines: 1
Coverable lines: 7
Total lines: 38
Line coverage: 85.7%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%
.ctor(...)100%11100%
CanBuildServiceDispatcher(...)100%11100%
BuildServiceDispatcher(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Queue/src/CoreWCF/Queue/Common/Configuration/QueueBaseTransportBindingElement.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.Channels;
 5using CoreWCF.Configuration;
 6
 7namespace CoreWCF.Queue.Common.Configuration
 8{
 9    public abstract class QueueBaseTransportBindingElement : TransportBindingElement
 10    {
 59511        protected QueueBaseTransportBindingElement()
 12        {
 59513        }
 14
 15        protected QueueBaseTransportBindingElement(QueueBaseTransportBindingElement elementToBeCloned)
 916            : base(elementToBeCloned)
 17        {
 918        }
 19
 20        public virtual int ConcurrencyLevel
 21        {
 022            get { return 1; }
 23        }
 24
 25        public abstract QueueTransportPump BuildQueueTransportPump(BindingContext context);
 26
 27        public override bool CanBuildServiceDispatcher<TChannel>(BindingContext context)
 28        {
 5029            return (typeof(TChannel) == typeof(IInputChannel));
 30        }
 31
 32        public override IServiceDispatcher BuildServiceDispatcher<TChannel>(BindingContext context,
 33            IServiceDispatcher innerDispatcher)
 34        {
 5035            return innerDispatcher;
 36        }
 37    }
 38}