< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Configuration.UnixDomainSocketOptionsSetup
Assembly: CoreWCF.UnixDomainSocket
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.UnixDomainSocket/src/CoreWCF/Configuration/UnixDomainSocketOptionsSetup.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 24
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
.ctor(...)100%11100%
Configure(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.UnixDomainSocket/src/CoreWCF/Configuration/UnixDomainSocketOptionsSetup.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.Options;
 6
 7namespace CoreWCF.Configuration
 8{
 9    internal class UnixDomainSocketOptionsSetup : IConfigureOptions<Channels.UnixDomainSocketOptions>
 10    {
 11        private readonly IServiceProvider _services;
 12
 313        public UnixDomainSocketOptionsSetup(IServiceProvider services)
 14        {
 315            _services = services;
 316        }
 17
 18        public void Configure(Channels.UnixDomainSocketOptions options)
 19        {
 320            options.ApplicationServices = _services;
 321        }
 22    }
 23}
 24