< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.TransportSecurityProtocolFactory
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/TransportSecurityProtocolFactory.cs
Line coverage
42%
Covered lines: 3
Uncovered lines: 4
Coverable lines: 7
Total lines: 27
Line coverage: 42.8%
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%
.ctor(...)100%110%
OnCreateSecurityProtocol(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/TransportSecurityProtocolFactory.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;
 5
 6namespace CoreWCF.Security
 7{
 8    internal class TransportSecurityProtocolFactory : SecurityProtocolFactory
 9    {
 5510        public TransportSecurityProtocolFactory() : base()
 11        {
 5512        }
 13
 014        internal TransportSecurityProtocolFactory(TransportSecurityProtocolFactory factory) : base(factory)
 15        {
 016        }
 17
 018        public override bool SupportsDuplex => true;
 19
 020        public override bool SupportsReplayDetection => false;
 21
 22        internal override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, TimeSpan timeout)
 23        {
 2424            return new TransportSecurityProtocol(this, target, via);
 25        }
 26    }
 27}