-
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
Allow manipulating the generator in Duplex.from() #55096
base: main
Are you sure you want to change the base?
Conversation
094e571
to
c22a808
Compare
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.
lgtm with a few nits, good job
b2ef820
to
881baa0
Compare
881baa0
to
12439c6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55096 +/- ##
==========================================
+ Coverage 88.24% 88.25% +0.01%
==========================================
Files 651 651
Lines 183877 183960 +83
Branches 35858 35874 +16
==========================================
+ Hits 162266 162361 +95
+ Misses 14901 14886 -15
- Partials 6710 6713 +3
|
|
@benjamingr This seems super hacky... wdyt? |
Co-authored-by: Jason Zhang <[email protected]>
@ronag I agree. I don't usually like to monkey patch stuff but in this case I coudn't think of another way... I tried using a |
@@ -401,3 +402,193 @@ function makeATestWritableStream(writeFunc) { | |||
assert.strictEqual(d.writable, false); | |||
})); | |||
} | |||
|
|||
{ |
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: I'd really prefer if we could start adding a bit more documentation to each individual test that briefly describes what is expected and what that test is verifying.
Fix for #55077