< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Logging.Enrichers.Extensions.ErrorRecordEnricherExtensions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Enrichers/Extensions/ErrorRecordEnricherExtensions.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 18
Line coverage: 100%
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

Coverage history

Coverage history 0 25 50 75 100 09/08/2025 - 20:34:03 Line coverage: 100% (1/1) Total lines: 18 Tag: Kestrun/Kestrun@3790ee5884494a7a2a829344a47743e0bf492e72

Metrics

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

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Enrichers/Extensions/ErrorRecordEnricherExtensions.cs

#LineLine coverage
 1using Serilog;
 2using Serilog.Configuration;
 3
 4namespace Kestrun.Logging.Enrichers.Extensions;
 5
 6/// <summary>
 7/// Provides extension methods for enriching Serilog logs with error record information.
 8/// </summary>
 9public static class ErrorRecordEnricherExtensions
 10{
 11    /// <summary>
 12    /// Enriches Serilog logs with error record information.
 13    /// </summary>
 14    /// <param name="loggerConfiguration">The logger enrichment configuration.</param>
 15    /// <param name="desctructureObjects">Specifies whether to destructure objects in the error record.</param>
 16    /// <returns>The logger configuration with error record enrichment.</returns>
 317    public static LoggerConfiguration WithErrorRecord(this LoggerEnrichmentConfiguration loggerConfiguration, bool desct
 18}