-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: formalize exposure of internal bindings #18698
Conversation
cc @nodejs/testing |
I would say if there is a test case that is hard to cover with only public APIs, then go for it, but at least add a description to the test documenting why it has to directly test the binding. |
node.gyp
Outdated
@@ -126,6 +125,7 @@ | |||
'lib/internal/repl/await.js', | |||
'lib/internal/socket_list.js', | |||
'lib/internal/test/unicode.js', | |||
'lib/internal/test/binding.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: order
moves exposed internalBindings to a single location with short guidelines on how to expose them and a warning for users should they come across it
f8111d4
to
0a70453
Compare
landed in 3e8af96 |
moves exposed internalBindings to a single location with short guidelines on how to expose them and a warning for users should they come across it PR-URL: #18698 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Should this be backported to |
moves exposed internalBindings to a single location with short guidelines on how to expose them and a warning for users should they come across it PR-URL: nodejs#18698 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
moves exposed internalBindings to a single location with short guidelines on how to expose them and a warning for users should they come across it PR-URL: nodejs#18698 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Should this be backported to |
moves exposed
internalBinding
s to a single location with shortguidelines on how to expose them and a warning for users should they
come across it.
i would also like to take this opportunity to discuss if these tests are needed. traditionally it seems we rely on internals working by ensuring the behavior of the publicly facing apis that depend on them, but after there was a bug with module_wrap i was encouraged to create a test for it.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)