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

Function writeToDecompress

test/parallel/test-zlib-flush-write-sync-interleaved.js:33–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}));
32
33function writeToDecompress() {
34 // Write the compressed chunks to a decompressor, one by one, in order to
35 // verify that the flushes actually worked.
36 const chunk = compressedChunks.shift();
37 if (chunk === undefined) return decompress.end();
38 decompress.write(chunk, common.mustCall(() => {
39 events.push({ read: decompress.read(decompress.readableLength) });
40 writeToDecompress();
41 }));
42}
43
44process.on('exit', () => {
45 assert.deepStrictEqual(events, [

Calls 5

shiftMethod · 0.45
endMethod · 0.45
writeMethod · 0.45
pushMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…