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

Function testZstdRoundTrip

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

Source from the content-addressed store, hash-verified

112// =============================================================================
113
114async function testZstdRoundTrip() {
115 const input = 'Hello, zstd compression!';
116 const result = await roundTrip(input, compressZstd(), decompressZstd());
117 assert.strictEqual(result, input);
118}
119
120async function testZstdLargeData() {
121 const input = 'zstd large data test. '.repeat(5000);

Calls 3

compressZstdFunction · 0.85
decompressZstdFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected