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(crypto): test node.js custom inspection of KeyStack #4887

Merged
merged 1 commit into from
May 30, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented May 29, 2024

This PR updates the test case of Node.js custom inspection.

Deno uses Deno's custom inspection if Symbol.for("Deno.customInspect") is defined. We need to overwrite it with undefined to invoke the custom Node.js inspection. ( https://github.com/denoland/deno/blob/4f9b23b3664578c2bf48415db246fb21e49abddb/ext/console/01_console.js#L451-L465 )

This improves the code coverage of crypto package.

@kt3k kt3k requested a review from iuioiua May 29, 2024 11:24
Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.99%. Comparing base (673c436) to head (54f0246).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4887      +/-   ##
==========================================
- Coverage   92.36%   91.99%   -0.37%     
==========================================
  Files         488      487       -1     
  Lines       41603    38894    -2709     
  Branches     5409     5391      -18     
==========================================
- Hits        38425    35781    -2644     
+ Misses       3122     3057      -65     
  Partials       56       56              

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

@iuioiua iuioiua changed the title test(crypto): test node.js custom inspection of KeyStack test(crypto): test node.js custom inspection of KeyStack May 30, 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 2740ff2 into denoland:main May 30, 2024
13 checks passed
@kt3k kt3k deleted the test-node-inspection branch May 30, 2024 02:33
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