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

Function testZstdLargeData

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

Source from the content-addressed store, hash-verified

118}
119
120async function testZstdLargeData() {
121 const input = 'zstd large data test. '.repeat(5000);
122 const result = await roundTrip(input, compressZstd(), decompressZstd());
123 assert.strictEqual(result, input);
124}
125
126async function testZstdActuallyCompresses() {
127 const input = 'Repeated data compresses well. '.repeat(1000);

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…