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

Function testDrainableNoPressure

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

Source from the content-addressed store, hash-verified

397// =============================================================================
398
399async function testDrainableNoPressure() {
400 const writable = new Writable({
401 highWaterMark: 1024,
402 write(chunk, enc, cb) { cb(); },
403 });
404
405 const writer = fromWritable(writable);
406 const result = await ondrain(writer);
407 assert.strictEqual(result, true);
408}
409
410// =============================================================================
411// drainableProtocol: returns null when destroyed

Calls 2

fromWritableFunction · 0.85
ondrainFunction · 0.70

Tested by

no test coverage detected