< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.SupportingTokenAuthenticatorSpecification
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/SupportingTokenAuthenticatorSpecification.cs
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 36
Line coverage: 100%
Branch coverage
50%
Covered branches: 2
Total branches: 4
Branch coverage: 50%
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(...)50%44100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/SupportingTokenAuthenticatorSpecification.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.IdentityModel.Selectors;
 5using CoreWCF.Security.Tokens;
 6
 7namespace CoreWCF.Security
 8{
 9    public class SupportingTokenAuthenticatorSpecification
 10    {
 11        public SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenRes
 1012            : this(tokenAuthenticator, securityTokenResolver, attachmentMode, tokenParameters, false)
 13        {
 1014        }
 15
 6516        internal SupportingTokenAuthenticatorSpecification(SecurityTokenAuthenticator tokenAuthenticator, SecurityTokenR
 17        {
 6518            SecurityTokenAttachmentModeHelper.Validate(attachmentMode);
 6519            TokenAuthenticator = tokenAuthenticator ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(
 6520            TokenResolver = securityTokenResolver;
 6521            SecurityTokenAttachmentMode = attachmentMode;
 6522            TokenParameters = tokenParameters ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof
 6523            IsTokenOptional = isTokenOptional;
 6524        }
 25
 41126        public SecurityTokenAuthenticator TokenAuthenticator { get; }
 27
 12728        public SecurityTokenResolver TokenResolver { get; }
 29
 35230        public SecurityTokenAttachmentMode SecurityTokenAttachmentMode { get; }
 31
 20432        public SecurityTokenParameters TokenParameters { get; }
 33
 6534        internal bool IsTokenOptional { get; set; }
 35    }
 36}