< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.TraceUtility
Assembly: CoreWCF.NetFramingBase
File(s): /home/runner/work/CoreWCF/CoreWCF/src/Common/src/DuplexChannels/CoreWCF/TraceUtility.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 28
Line coverage: 0%
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
ThrowHelperError(...)100%110%
ThrowHelperError(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/Common/src/DuplexChannels/CoreWCF/TraceUtility.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.Channels;
 6
 7namespace CoreWCF
 8{
 9    internal static partial class TraceUtility
 10    {
 11        internal static Exception ThrowHelperError(Exception exception, Message message)
 12        {
 13            // If the message is closed, we won't get an activity
 14            //Guid activityId = TraceUtility.ExtractActivityId(message);
 15            //if (DiagnosticUtility.ShouldTraceError)
 16            //{
 17            //    DiagnosticUtility.DiagnosticTrace.TraceEvent(TraceEventType.Error, TraceCode.ThrowingException, Genera
 18            //        TraceSR.Format(TraceSR.ThrowingException), null, exception, activityId, null);
 19            //}
 020            return exception;
 21        }
 22
 23        internal static Exception ThrowHelperError(Exception exception, Guid activityId, object source)
 24        {
 025            return exception;
 26        }
 27    }
 28}