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

Function testDeflateRoundTrip

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

Source from the content-addressed store, hash-verified

71// =============================================================================
72
73function testDeflateRoundTrip() {
74 const input = 'Hello, sync deflate compression!';
75 const result = roundTrip(input, compressDeflateSync(),
76 decompressDeflateSync());
77 assert.strictEqual(result, input);
78}
79
80function testDeflateLargeData() {
81 const input = 'deflate sync large data test. '.repeat(5000);

Calls 3

compressDeflateSyncFunction · 0.85
decompressDeflateSyncFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…