< Summary

Information
Class: Elsa.Testing.Shared.XunitLoggerProvider
Assembly: Elsa.Testing.Shared
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Testing.Shared/XunitLoggerProvider.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 18
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 Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
CreateLogger(...)100%210%
Dispose()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Testing.Shared/XunitLoggerProvider.cs

#LineLine coverage
 1using Microsoft.Extensions.Logging;
 2using Xunit.Abstractions;
 3
 4namespace Elsa.Testing.Shared;
 5
 6/// <summary>
 7/// Provides an <see cref="ILoggerProvider"/> implementation that writes log messages to xUnit's <see cref="ITestOutputH
 8/// </summary>
 09public class XunitLoggerProvider(ITestOutputHelper testOutputHelper) : ILoggerProvider
 10{
 11    /// <inheritdoc />
 012    public ILogger CreateLogger(string categoryName) => new XunitLogger(testOutputHelper, categoryName);
 13
 14    /// <inheritdoc />
 15    public void Dispose()
 16    {
 017    }
 18}