-
Notifications
You must be signed in to change notification settings - Fork 30k
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
stream, test: Increase the coverage of _readableState and _writableState properties #8644
Comments
Maybe we should make a GitHub Project for "Streams: _readableState and _writableState"? |
@Fishrock123 if we want to try that, I'm happy to. I do not have much time to do the tests, but I am happy to divide this into single issues. |
hey @mcollina and @Fishrock123!! I am fairly new to the code base but would like to help out on this if you guys would like. @mcollina have you separated out the issues as you mentioned? |
I've made a meta-project at https://github.com/nodejs/node/projects/2 @mcollina if you could make issues and then add them to the "issues" section, that could be a good start! Edit: I still think we should do some groupings though, or should this issue be good enough to sum them up as an issue description? |
@Fishrock123 I added some. Probably it needs some more. I tried to split them up in manageable chunks of work that could be achieved independently. Let me know if I should clarify the text of the issues, or if they are easy to pick up. |
Could this issue be in conflict with #445? It seemed like |
Currently there are very little tests on streams internal state machine. Currently we just test the public API. Anything that changes the behavior of the linked properties is likely to be semver-major, so a decent test suite is in order to catch that situation. IMHO unit tests are a basic step forward for any refactoring of the streams code. |
Thanks for setting up the issues @mcollina. Will try and tackle one of them and let you know if I have any questions. |
Closing this, as we have good coverage of that now, thanks to everyone involved in this effort!!! |
_readableStream
and_writableStream
in streams are widely used in userland, but the coverage for the state machine is insufficient, as only few properties of those are checked by unit tests.I propose we add some more tests for the internal properties and state. This is probably a meta-issue, in the sense that we might send multiple PRs to increase the coverage.
Edit: The tests should possibly use only the
stream
module, rather thanfs
ornet
.cc @nodejs/streams
The text was updated successfully, but these errors were encountered: