< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Runtime.Diagnostics.SecurityTraceRecordHelper
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Runtime/Diagnostics/SecurityTraceRecordHelper.cs
Line coverage
25%
Covered lines: 1
Uncovered lines: 3
Coverable lines: 4
Total lines: 35
Line coverage: 25%
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
TraceIdentityDeterminationFailure(...)100%110%
TraceIdentityDeterminationSuccess(...)100%110%
TraceIdentityVerificationFailure(...)100%110%
TraceExportChannelBindingEntry()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Runtime/Diagnostics/SecurityTraceRecordHelper.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 CoreWCF.IdentityModel.Policy;
 6
 7namespace CoreWCF.Runtime.Diagnostics
 8{
 9    internal static class SecurityTraceRecordHelper
 10    {
 11        internal static void TraceIdentityDeterminationFailure(EndpointAddress epr, Type identityVerifier)
 12        {
 13            //if (DiagnosticUtility.ShouldTraceInformation)
 14            //    TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityDeterminationFailure, SR
 015        }
 16
 17        internal static void TraceIdentityDeterminationSuccess(EndpointAddress epr, EndpointIdentity identity, Type iden
 18        {
 19            //if (DiagnosticUtility.ShouldTraceInformation)
 20            //    TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityDeterminationSuccess, SR
 021        }
 22
 23        internal static void TraceIdentityVerificationFailure(EndpointIdentity identity, AuthorizationContext authContex
 24        {
 25            //if (DiagnosticUtility.ShouldTraceInformation)
 26            //    TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityVerificationFailure, SR.
 027        }
 28
 29        internal static void TraceExportChannelBindingEntry()
 30        {
 31            //if (DiagnosticUtility.ShouldTraceInformation)
 32            //    TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ExportSecurityChannelBindingEntry, SR.Fo
 1933        }
 34    }
 35}