< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.WS2007HttpBinding
Assembly: CoreWCF.Http
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/WS2007HttpBinding.cs
Line coverage
80%
Covered lines: 12
Uncovered lines: 3
Coverable lines: 15
Total lines: 50
Line coverage: 80%
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
.cctor()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%
.ctor(...)100%11100%
.ctor(...)100%110%
CreateBindingElements()100%11100%
GetTransport()100%11100%
CreateMessageSecurity()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/WS2007HttpBinding.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 CoreWCF.Channels;
 5
 6namespace CoreWCF
 7{
 8    public class WS2007HttpBinding : WSHttpBinding
 9    {
 110        private static readonly MessageSecurityVersion s_WS2007MessageSecurityVersion = MessageSecurityVersion.WSSecurit
 11
 12        public WS2007HttpBinding()
 313            : base()
 14        {
 315            HttpsTransport.MessageSecurityVersion = s_WS2007MessageSecurityVersion;
 316        }
 17
 18        public WS2007HttpBinding(SecurityMode securityMode)
 1019            : this(securityMode, reliableSessionEnabled: false)
 20        {
 1021        }
 22
 23        public WS2007HttpBinding(SecurityMode securityMode, bool reliableSessionEnabled)
 1024            : base(securityMode, reliableSessionEnabled)
 25        {
 1026            HttpsTransport.MessageSecurityVersion = s_WS2007MessageSecurityVersion;
 1027        }
 28
 29        internal WS2007HttpBinding(WSHTTPSecurity security, bool reliableSessionEnabled)
 030            : base(security, reliableSessionEnabled)
 31        {
 032            HttpsTransport.MessageSecurityVersion = s_WS2007MessageSecurityVersion;
 033        }
 34
 35        public override BindingElementCollection CreateBindingElements()
 36        {
 14137            return base.CreateBindingElements();
 38        }
 39
 40        protected override TransportBindingElement GetTransport()
 41        {
 18042            return base.GetTransport();
 43        }
 44
 45        protected override SecurityBindingElement CreateMessageSecurity()
 46        {
 14147            return this.Security.CreateMessageSecurity(isReliableSessionEnabled: false, s_WS2007MessageSecurityVersion);
 48        }
 49    }
 50}