< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Utilities.Yaml.FlowStyleAllEmitter
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Utilities/Yaml/FlowStyleAllEmitter.cs
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 38
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 10/13/2025 - 16:52:37 Line coverage: 100% (7/7) Total lines: 38 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e

Metrics

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

File(s)

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

#LineLine coverage
 1using YamlDotNet.Core;
 2using YamlDotNet.Core.Events;
 3using YamlDotNet.Serialization;
 4using YamlDotNet.Serialization.EventEmitters;
 5
 6namespace Kestrun.Utilities.Yaml;
 7
 8/// <summary>
 9/// YAML emitter that forces all mappings and sequences to use flow style
 10/// </summary>
 11/// <remarks>
 12/// Constructor
 13/// </remarks>
 14/// <param name="next">The next event emitter in the chain</param>
 315public class FlowStyleAllEmitter(IEventEmitter next) : ChainedEventEmitter(next)
 16{
 17    /// <summary>
 18    /// Emit a mapping start event with flow style
 19    /// </summary>
 20    /// <param name="eventInfo">The mapping start event information</param>
 21    /// <param name="emitter">The YAML emitter</param>
 22    public override void Emit(MappingStartEventInfo eventInfo, IEmitter emitter)
 23    {
 224        eventInfo.Style = MappingStyle.Flow;
 225        base.Emit(eventInfo, emitter);
 226    }
 27
 28    /// <summary>
 29    /// Emit a sequence start event with flow style
 30    /// </summary>
 31    /// <param name="eventInfo">The sequence start event information</param>
 32    /// <param name="emitter">The YAML emitter</param>
 33    public override void Emit(SequenceStartEventInfo eventInfo, IEmitter emitter)
 34    {
 135        eventInfo.Style = SequenceStyle.Flow;
 136        nextEmitter.Emit(eventInfo, emitter);
 137    }
 38}