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

Function testDesiredSizeNull

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

Source from the content-addressed store, hash-verified

385// =============================================================================
386
387function testDesiredSizeNull() {
388 const writable = new Writable({ write(chunk, enc, cb) { cb(); } });
389 const writer = fromWritable(writable);
390
391 writable.destroy();
392 assert.strictEqual(writer.desiredSize, null);
393}
394
395// =============================================================================
396// drainableProtocol: resolves immediately when no backpressure

Calls 2

fromWritableFunction · 0.85
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…