denoland / deno_std

The Deno Standard Library
https://jsr.io/@std
MIT License
2.83k stars 581 forks source link

test(yaml): improve `parse()` testing #5182

Closed kt3k closed 4 days ago

kt3k commented 4 days ago

This PR adds test cases of parse function.

This exercises the case of various escape sequences, invalid strings, yaml directives.

This improves line coverage of yaml package from 60.49% to 65.01%.

part of #3713

codecov[bot] commented 4 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.77%. Comparing base (4052256) to head (ef42f5b).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #5182 +/- ## ========================================== + Coverage 93.34% 93.77% +0.43% ========================================== Files 469 469 Lines 37917 37917 Branches 5386 5449 +63 ========================================== + Hits 35392 35557 +165 + Misses 2483 2317 -166 - Partials 42 43 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.