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

Function testZstdWithParams

test/parallel/test-stream-iter-transform-coverage.js:84–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83// Zstd with custom compression level param
84async function testZstdWithParams() {
85 const input = 'zstd params test '.repeat(100);
86 const params = { [constants.ZSTD_c_compressionLevel]: 10 };
87 const result = await roundTrip(input, compressZstd({ params }),
88 decompressZstd());
89 assert.strictEqual(result, input);
90}
91
92// Gzip with custom chunkSize
93async function testGzipWithChunkSize() {

Calls 3

compressZstdFunction · 0.85
decompressZstdFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…