Uh oh!
There was an error while loading. Please reload this page.
test: improve code coverage for streams/duplexify - #41862
Conversation
Trott
commented
Feb 5, 2022
If we have to use |
Trott
commented
Feb 5, 2022
(We can also land this and try to refactor things later to use public APIs where possible.) |
Trott
commented
Feb 5, 2022
If could is unreachable, you can delete it. If you want to be cautious, you can replace it with an internal assertion. (https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/cluster/shared_handle.js is an example of something that uses the internal assertion.) |
Signed-off-by: Erick Wendel <erick.workspace@gmail.com>
ErickWendel
commented
Feb 7, 2022
Just updated it using Public APIs |
ErickWendel
commented
Feb 7, 2022
Perfect, I'll create another PR to land this, ok? |
nodejs-github-bot
commented
Feb 7, 2022
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Erick Wendel <erick.workspace@gmail.com>
Signed-off-by: Erick Wendel <erick.workspace@gmail.com>
nodejs-github-bot
commented
Feb 10, 2022
nodejs-github-bot
commented
Feb 11, 2022
Landed in 0185464 |
PR-URL: nodejs#41862 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: nodejs#41862 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: #41862 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
danielleadams
commented
Apr 19, 2022
@ErickWendel this breaks tests when landing in v16.x-staging. Do you mind creating a backport PR for the v16.x line? Thank you |
ErickWendel
commented
Apr 19, 2022
Heyy. Sure! Do you have an example of how to do it? I'm not sure if it's just to make it works on the v16.x |
PR-URL: nodejs/node#41862 Backport-PR-URL: nodejs/node#42788 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Improve code coverage for streams duplexify.js
Refs:
I would add that those lines are unreachable:
In those cases, what could I do to cover it?