< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Utilities.Yaml.NullValueGraphVisitor
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Utilities/Yaml/NullValueGraphVisitor.cs
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 31
Line coverage: 66.6%
Branch coverage
50%
Covered branches: 2
Total branches: 4
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 10/13/2025 - 16:52:37 Line coverage: 66.6% (2/3) Branch coverage: 50% (2/4) Total lines: 31 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e 10/13/2025 - 16:52:37 Line coverage: 66.6% (2/3) Branch coverage: 50% (2/4) Total lines: 31 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
EnterMapping(...)100%22100%
EnterMapping(...)0%620%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Utilities/Yaml/NullValueGraphVisitor.cs

#LineLine coverage
 1using YamlDotNet.Core;
 2using YamlDotNet.Serialization;
 3using YamlDotNet.Serialization.ObjectGraphVisitors;
 4
 5namespace Kestrun.Utilities.Yaml;
 6
 7/// <summary>
 8/// YAML object graph visitor that omits null values
 9/// </summary>
 510public sealed class NullValueGraphVisitor(IObjectGraphVisitor<IEmitter> nextVisitor) : ChainedObjectGraphVisitor(nextVis
 11{
 12    /// <summary>
 13    /// YAML object graph visitor that omits null values in mappings
 14    /// </summary>
 15    /// <param name="key">The key descriptor</param>
 16    /// <param name="value">The value descriptor</param>
 17    /// <param name="context">The emitter context</param>
 18    /// <param name="serializer">The object serializer</param>
 19    /// <returns></returns>
 220    public override bool EnterMapping(IPropertyDescriptor key, IObjectDescriptor value, IEmitter context, ObjectSerializ
 21
 22    /// <summary>
 23    /// YAML object graph visitor that omits null values in mappings
 24    /// </summary>
 25    /// <param name="key">The key descriptor</param>
 26    /// <param name="value">The value descriptor</param>
 27    /// <param name="context">The emitter context</param>
 28    /// <param name="serializer">The object serializer</param>
 29    /// <returns></returns>
 030    public override bool EnterMapping(IObjectDescriptor key, IObjectDescriptor value, IEmitter context, ObjectSerializer
 31}