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

Function testGzipRoundTrip

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

Source from the content-addressed store, hash-verified

37// =============================================================================
38
39async function testGzipRoundTrip() {
40 const input = 'Hello, gzip compression!';
41 const result = await roundTrip(input, compressGzip(), decompressGzip());
42 assert.strictEqual(result, input);
43}
44
45async function testGzipLargeData() {
46 // 100KB of repeated text - exercises multi-chunk path

Calls 3

compressGzipFunction · 0.85
decompressGzipFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected