Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(yaml): add edge case test for stringify() #5704

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

timreichen
Copy link
Contributor

@timreichen timreichen commented Aug 17, 2024

Changes
This PR adds a test for the edge case when state.writeNode() returns false in stringify()

@timreichen timreichen requested a review from kt3k as a code owner August 17, 2024 08:04
@github-actions github-actions bot added the yaml label Aug 17, 2024
@timreichen timreichen changed the title feat(yaml): add edge case feat(yaml): add edge case test Aug 17, 2024
Copy link

codecov bot commented Aug 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.26%. Comparing base (1bc290b) to head (2782a85).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5704   +/-   ##
=======================================
  Coverage   96.25%   96.26%           
=======================================
  Files         477      477           
  Lines       38512    38512           
  Branches     5585     5585           
=======================================
+ Hits        37070    37072    +2     
+ Misses       1400     1398    -2     
  Partials       42       42           

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

@kt3k kt3k changed the title feat(yaml): add edge case test test(yaml): add edge case test Aug 19, 2024
@kt3k kt3k changed the title test(yaml): add edge case test test(yaml): add edge case test for stringify Aug 19, 2024
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this improves the line coverage of stringify method of DumperState. Nice!

LGTM

@kt3k kt3k merged commit 36817b7 into denoland:main Aug 19, 2024
15 checks passed
@timreichen timreichen deleted the yaml-edge-case-test branch August 19, 2024 06:16
@iuioiua iuioiua changed the title test(yaml): add edge case test for stringify test(yaml): add edge case test for stringify() Aug 19, 2024
@iuioiua
Copy link
Contributor

iuioiua commented Aug 19, 2024

For future reference, @timreichen, please use the test prefix in the title for such PRs that only affect test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants