< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.NamedPipeTransportBindingElement
Assembly: CoreWCF.NetNamedPipe
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetNamedPipe/src/CoreWCF/Channels/NamedPipeTransportBindingElement.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 36
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%110%
.ctor(...)100%110%
Clone()100%110%
BuildServiceDispatcher(...)100%110%
SupportsUpgrade(...)100%110%
GetProperty(...)0%220%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetNamedPipe/src/CoreWCF/Channels/NamedPipeTransportBindingElement.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 System.Runtime.Versioning;
 6using CoreWCF.Configuration;
 7
 8namespace CoreWCF.Channels
 9{
 10    [SupportedOSPlatform("windows")]
 11    public class NamedPipeTransportBindingElement : ConnectionOrientedTransportBindingElement
 12    {
 013        public NamedPipeTransportBindingElement() : base() { }
 014        protected NamedPipeTransportBindingElement(NamedPipeTransportBindingElement elementToBeCloned) : base(elementToB
 15
 16        // AllowedSecurityIdentifiers has moved to NamedPipeListenOptions.AllowedUsers
 17
 018        public override string Scheme => Uri.UriSchemeNetPipe;
 019        protected override string WsdlTransportUri => "http://schemas.microsoft.com/soap/named-pipe"; //TransportPolicyC
 020        public override BindingElement Clone() => new NamedPipeTransportBindingElement(this);
 021        public override IServiceDispatcher BuildServiceDispatcher<TChannel>(BindingContext context, IServiceDispatcher i
 022        protected override bool SupportsUpgrade(StreamUpgradeBindingElement upgradeBindingElement) => upgradeBindingElem
 23
 24        public override T GetProperty<T>(BindingContext context)
 25        {
 026            if (context == null)
 27            {
 028                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
 29            }
 30            else
 31            {
 032                return base.GetProperty<T>(context);
 33            }
 34        }
 35    }
 36}