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

Function testGzipLargeData

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

Source from the content-addressed store, hash-verified

43}
44
45function testGzipLargeData() {
46 const input = 'gzip sync large data test. '.repeat(5000);
47 const result = roundTrip(input, compressGzipSync(), decompressGzipSync());
48 assert.strictEqual(result, input);
49}
50
51function testGzipActuallyCompresses() {
52 const input = 'Repeated data compresses well. '.repeat(1000);

Calls 3

compressGzipSyncFunction · 0.85
decompressGzipSyncFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…