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

Function testChainedGzipDeflate

test/parallel/test-stream-iter-transform-roundtrip.js:203–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201// =============================================================================
202
203async function testChainedGzipDeflate() {
204 const input = 'Double compression test data. '.repeat(100);
205 // Compress: gzip then deflate
206 const compressed = pull(pull(from(input), compressGzip()), compressDeflate());
207 // Decompress: deflate then gzip (reverse order)
208 const decompressed = pull(pull(compressed, decompressDeflate()),
209 decompressGzip());
210 const result = await text(decompressed);
211 assert.strictEqual(result, input);
212}
213
214// =============================================================================
215// Transform protocol: verify each factory returns a proper transform object

Calls 7

compressGzipFunction · 0.85
compressDeflateFunction · 0.85
decompressDeflateFunction · 0.85
decompressGzipFunction · 0.85
pullFunction · 0.70
fromFunction · 0.50
textFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…