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

Function testGzipLargeData

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

Source from the content-addressed store, hash-verified

43}
44
45async function testGzipLargeData() {
46 // 100KB of repeated text - exercises multi-chunk path
47 const input = 'gzip large data test. '.repeat(5000);
48 const result = await roundTrip(input, compressGzip(), decompressGzip());
49 assert.strictEqual(result, input);
50}
51
52async function testGzipActuallyCompresses() {
53 const input = 'Repeated data compresses well. '.repeat(1000);

Calls 3

compressGzipFunction · 0.85
decompressGzipFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…