MCPcopy Index your code
hub / github.com/nodejs/node / testDrainableNull

Function testDrainableNull

test/parallel/test-stream-iter-writable-interop.js:414–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

412// =============================================================================
413
414function testDrainableNull() {
415 const writable = new Writable({ write(chunk, enc, cb) { cb(); } });
416 const writer = fromWritable(writable);
417
418 writable.destroy();
419 assert.strictEqual(ondrain(writer), null);
420}
421
422// =============================================================================
423// Error propagation: write after end rejects

Calls 3

fromWritableFunction · 0.85
ondrainFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…