< Summary

Information
Class: IceRpc.Retry.Internal.RetryInterceptorLoggerExtensions
Assembly: IceRpc.Retry
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc.Retry/Internal/RetryInterceptorLoggerExtensions.cs
Tag: 275_13775359185
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 14
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Total methods: 2
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
RetryScope(...)100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc.Retry/Internal/RetryInterceptorLoggerExtensions.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3using Microsoft.Extensions.Logging;
 4
 5namespace IceRpc.Retry.Internal;
 6
 7internal static partial class RetryInterceptorLoggerExtensions
 8{
 19    private static readonly Func<ILogger, int, int, IDisposable?> _retryScope =
 110        LoggerMessage.DefineScope<int, int>("Retry (Attempt = {Attempt}, MaxAttempts = {MaxAttempts})");
 11
 12    internal static IDisposable? RetryScope(this ILogger logger, int attempt, int maxAttempts) =>
 113        _retryScope(logger, attempt, maxAttempts);
 14}