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

Function testGzipCompatWithZlib

test/parallel/test-stream-iter-transform-compat.js:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27// =============================================================================
28
29async function testGzipCompatWithZlib() {
30 const gunzip = promisify(zlib.gunzip);
31
32 const input = 'Cross-compat test with node:zlib. '.repeat(100);
33 const compressed = await bytes(pull(from(input), compressGzip()));
34
35 // Decompress with standard zlib
36 const decompressed = await gunzip(compressed);
37 assert.strictEqual(decompressed.toString(), input);
38}
39
40async function testDeflateCompatWithZlib() {
41 const inflate = promisify(zlib.inflate);

Calls 6

promisifyFunction · 0.85
compressGzipFunction · 0.85
pullFunction · 0.70
bytesFunction · 0.50
fromFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…