< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.Framing.FramingLoggingExtensions
Assembly: CoreWCF.NetTcp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetTcp/src/CoreWCF/Channels/Framing/FramingLoggingExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 22
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
.cctor()100%110%
LogBytes(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetTcp/src/CoreWCF/Channels/Framing/FramingLoggingExtensions.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 System.IO.Pipelines;
 6using Microsoft.Extensions.Logging;
 7
 8namespace CoreWCF.Channels.Framing
 9{
 10    internal static class FramingLoggingExtensions
 11    {
 012        private static Action<ILogger, string, int, string, Exception> s_connectionLogging = LoggerMessage.Define<string
 013            LogLevel.Trace,
 014            new EventId(1059, "ConnectionLogging"),
 015            "{method}[{byteCount}]{data}");
 16
 17        public static void LogBytes(this ILogger logger, string method, int count, string data)
 18        {
 019            s_connectionLogging(logger, method, count, data, null);
 020        }
 21    }
 22}