Skip to content

Conversation

@jborean93
Copy link
Owner

Adds the new emitter logic to reduce the amount of processing done on each input object to YamlDotNet. This also paves the way for supporting comments or other complex scenarios not normally exposed through the Yaml* objects used before.

The ConvertTo-Yaml -Stream parameter can be used to serialize each input object as a YAML string as they are received rather than collecting until the end of the cmdlet call. This is useful if the cmdlet sending the input is long running and the caller wishes to output the objects immediately.

Adds the new emitter logic to reduce the amount of processing done on
each input object to YamlDotNet. This also paves the way for supporting
comments or other complex scenarios not normally exposed through the
Yaml* objects used before.

The ConvertTo-Yaml -Stream parameter can be used to serialize each input
object as a YAML string as they are received rather than collecting
until the end of the cmdlet call. This is useful if the cmdlet sending
the input is long running and the caller wishes to output the objects
immediately.
@codecov
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 97.35099% with 4 lines in your changes missing coverage. Please review.

Project coverage is 93.79%. Comparing base (62ad75c) to head (2d1067a).

Files Patch % Lines
src/Yayaml.Module/ConvertToYaml.cs 97.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   92.39%   93.79%   +1.39%     
==========================================
  Files          16       16              
  Lines        1078     1466     +388     
  Branches      188      194       +6     
==========================================
+ Hits          996     1375     +379     
- Misses         56       71      +15     
+ Partials       26       20       -6     
Flag Coverage Δ
PS_5.1_x64_Windows 89.13% <86.75%> (+2.29%) ⬆️
PS_7.2_x64_Linux 94.48% <94.03%> (+1.31%) ⬆️
PS_7.2_x64_Windows ?
PS_7.3_x64_Linux 94.48% <94.03%> (+1.31%) ⬆️
PS_7.3_x64_Windows 94.48% <94.03%> (+1.31%) ⬆️
PS_7.4_x64_Linux 94.48% <94.03%> (+1.31%) ⬆️
PS_7.4_x64_Windows 94.48% <94.03%> (+1.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jborean93 jborean93 merged commit a6fee18 into main Jul 10, 2024
@jborean93 jborean93 deleted the emitter branch July 10, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants