< Summary

Class:Microsoft.Extensions.Hosting.UseKafkaExtension
Assembly:SeungYongShim.Kafka.DependencyInjection
File(s):/home/runner/work/SeungYongShim.Kafka/SeungYongShim.Kafka/src/SeungYongShim.Kafka.DependencyInjection/UseKafkaExtension.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:22
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0
Tag:50_866899697

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UseKafka(...)0%110100%

File(s)

/home/runner/work/SeungYongShim.Kafka/SeungYongShim.Kafka/src/SeungYongShim.Kafka.DependencyInjection/UseKafkaExtension.cs

#LineLine coverage
 1using System.Linq;
 2using Microsoft.Extensions.DependencyInjection;
 3using SeungYongShim.Kafka;
 4
 5
 6namespace Microsoft.Extensions.Hosting
 7{
 8    public static class UseKafkaExtension
 9    {
 10        public static IHostBuilder UseKafka(this IHostBuilder host,
 11                                            KafkaConfig kafkaConfig,
 12                                            params string[] searchPatterns)
 213        {
 214            host.ConfigureServices((host, services) =>
 415            {
 416                services.AddKafka(kafkaConfig, searchPatterns.Append("SeungYongShim.Kafka*.dll"));
 417            });
 18
 219            return host;
 220        }
 21    }
 22}