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

Function testCachedWriter

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

Source from the content-addressed store, hash-verified

570// =============================================================================
571
572function testCachedWriter() {
573 const writable = new Writable({ write(chunk, enc, cb) { cb(); } });
574 const writer1 = fromWritable(writable);
575 const writer2 = fromWritable(writable);
576
577 assert.strictEqual(writer1, writer2);
578}
579
580// =============================================================================
581// fail() rejects pending block waiters

Calls 1

fromWritableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…