< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Queue.Common.Configuration.QueueServiceCollectionExtension
Assembly: CoreWCF.Queue
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Queue/src/CoreWCF/Queue/Common/Configuration/QueueServiceCollectionExtensions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 20
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
AddQueueTransport(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Queue/src/CoreWCF/Queue/Common/Configuration/QueueServiceCollectionExtensions.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;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace CoreWCF.Queue.Common.Configuration
 8{
 9    public static class QueueServiceCollectionExtension
 10    {
 11        public static IServiceCollection AddQueueTransport(this IServiceCollection services)
 12        {
 5013            services.AddTransient<IQueueMiddlewareBuilder, QueueMiddlewareBuilder>();
 5014            services.AddSingleton<QueueMiddleware>();
 5015            services.AddHostedService<QueuePollingService>();
 5016            services.AddTransient<QueueInputChannel>();
 5017            return services;
 18        }
 19    }
 20}