< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.NonDualMessageSecurityOverHttp
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NonDualMessageSecurityOverHttp.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 23
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%
IsSecureConversationEnabled()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NonDualMessageSecurityOverHttp.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
 4namespace CoreWCF
 5{
 6    public sealed class NonDualMessageSecurityOverHttp : MessageSecurityOverHttp
 7    {
 8        internal const bool DefaultEstablishSecurityContext = true;
 9
 10        public NonDualMessageSecurityOverHttp()
 4511            : base()
 12        {
 4513            EstablishSecurityContext = DefaultEstablishSecurityContext;
 4514        }
 15
 22316        public bool EstablishSecurityContext { get; set; }
 17
 18        protected override bool IsSecureConversationEnabled()
 19        {
 17420            return EstablishSecurityContext;
 21        }
 22    }
 23}