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

Function testZlibGzipToNewStreams

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

Source from the content-addressed store, hash-verified

73// =============================================================================
74
75async function testZlibGzipToNewStreams() {
76 const gzip = promisify(zlib.gzip);
77
78 const input = 'Reverse compat gzip test. '.repeat(100);
79 const compressed = await gzip(input);
80 const result = await text(pull(from(compressed), decompressGzip()));
81 assert.strictEqual(result, input);
82}
83
84async function testZlibDeflateToNewStreams() {
85 const deflate = promisify(zlib.deflate);

Calls 5

promisifyFunction · 0.85
decompressGzipFunction · 0.85
pullFunction · 0.70
textFunction · 0.50
fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…