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

Function testZlibZstdToNewStreams

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

Source from the content-addressed store, hash-verified

100}
101
102async function testZlibZstdToNewStreams() {
103 const zstdCompress = promisify(zlib.zstdCompress);
104
105 const input = 'Reverse compat zstd test. '.repeat(100);
106 const compressed = await zstdCompress(input);
107 const result = await text(pull(from(compressed), decompressZstd()));
108 assert.strictEqual(result, input);
109}
110
111// =============================================================================
112// Run all tests

Calls 5

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

Tested by

no test coverage detected