< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Queue.Common.QueueTransportPump
Assembly: CoreWCF.Queue
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Queue/src/CoreWCF/Queue/Common/QueueTransportPump.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 19
Line coverage: 100%
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
CreateDefaultPump(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Queue/src/CoreWCF/Queue/Common/QueueTransportPump.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 System.Threading;
 5using System.Threading.Tasks;
 6
 7namespace CoreWCF.Queue.Common
 8{
 9    public abstract class QueueTransportPump
 10    {
 11        public abstract Task StartPumpAsync(QueueTransportContext queueTransportContext, CancellationToken token);
 12        public abstract Task StopPumpAsync(CancellationToken token);
 13
 14        public static QueueTransportPump CreateDefaultPump(IQueueTransport queueTransport)
 15        {
 316            return new DefaultQueueTransportPump(queueTransport);
 17        }
 18    }
 19}