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

Function push

test/parallel/test-stream3-pause-then-read.js:48–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47let totalPushed = 0;
48function push() {
49 const chunk = chunks-- > 0 ? Buffer.alloc(chunkSize, 'x') : null;
50 if (chunk) {
51 totalPushed += chunk.length;
52 }
53 console.log('chunks', chunks);
54 r.push(chunk);
55}
56
57read100();
58

Callers 15

testBasicWriteReadFunction · 0.70
testMultipleWritesFunction · 0.70
testDesiredSizeFunction · 0.70
testWriterEndFunction · 0.70
testWriterFailFunction · 0.70
testConsumerBreakFunction · 0.70
testAbortSignalFunction · 0.70
testPreAbortedSignalFunction · 0.70
testPushWithTransformsFunction · 0.70
testInvalidBackpressureFunction · 0.70

Calls 3

allocMethod · 0.80
logMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…