< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Configuration.EndpointConfiguratorEndpointBehavior
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Configuration/EndpointConfiguratorEndpointBehavior.cs
Line coverage
87%
Covered lines: 7
Uncovered lines: 1
Coverable lines: 8
Total lines: 40
Line coverage: 87.5%
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%
AddBindingParameters(...)100%11100%
ApplyClientBehavior(...)100%110%
ApplyDispatchBehavior(...)100%11100%
Validate(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Configuration/EndpointConfiguratorEndpointBehavior.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 CoreWCF.Channels;
 6using CoreWCF.Description;
 7using CoreWCF.Dispatcher;
 8
 9namespace CoreWCF.Configuration
 10{
 11    internal class EndpointConfiguratorEndpointBehavior : IEndpointBehavior
 12    {
 13        private readonly Action<ServiceEndpoint> _configureEndpoint;
 14
 3715        public EndpointConfiguratorEndpointBehavior(Action<ServiceEndpoint> configureEndpoint)
 16        {
 3717            _configureEndpoint = configureEndpoint;
 3718        }
 19
 20        public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
 21        {
 22
 3723        }
 24
 25        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
 26        {
 27
 028        }
 29
 30        public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
 31        {
 3732            _configureEndpoint(endpoint);
 3733        }
 34
 35        public void Validate(ServiceEndpoint endpoint)
 36        {
 37
 3738        }
 39    }
 40}