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

Function testGzipRoundTrip

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

Source from the content-addressed store, hash-verified

37// =============================================================================
38
39function testGzipRoundTrip() {
40 const input = 'Hello, sync gzip compression!';
41 const result = roundTrip(input, compressGzipSync(), decompressGzipSync());
42 assert.strictEqual(result, input);
43}
44
45function testGzipLargeData() {
46 const input = 'gzip sync large data test. '.repeat(5000);

Calls 3

compressGzipSyncFunction · 0.85
decompressGzipSyncFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected