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(jsonc): remove dead code and improve testing #5093

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jun 20, 2024

This improves the test coverage of jsonc from 85.26% to 97.42% (missed lines are reduced from 46 to 8)

part of #3713

@github-actions github-actions bot added the jsonc label Jun 20, 2024
Comment on lines +11 to +13
import "./testdata/JSONTestSuite/test.ts";
import "./testdata/node-jsonc-parser/test.ts";
import "./testdata/test262/test.ts";
Copy link
Member Author

Choose a reason for hiding this comment

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

I think these test cases used to run without these imports, but currently they are not discovered by deno test command.

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.60%. Comparing base (f863a2b) to head (5b9c88b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5093      +/-   ##
==========================================
+ Coverage   92.51%   92.60%   +0.09%     
==========================================
  Files         481      482       +1     
  Lines       38719    38731      +12     
  Branches     5441     5449       +8     
==========================================
+ Hits        35819    35867      +48     
+ Misses       2845     2809      -36     
  Partials       55       55              

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

@iuioiua iuioiua changed the title refactor(jsonc): remove dead code and improve testing tests(jsonc): remove dead code and improve testing Jun 20, 2024
@iuioiua iuioiua changed the title tests(jsonc): remove dead code and improve testing test(jsonc): remove dead code and improve testing Jun 20, 2024
Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Nice

@kt3k kt3k merged commit 09d758a into denoland:main Jun 20, 2024
16 of 17 checks passed
@kt3k kt3k deleted the improve-jsonc-testing branch June 20, 2024 09:13
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.

2 participants