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

Function testDeflateRoundTrip

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

Source from the content-addressed store, hash-verified

63// =============================================================================
64
65async function testDeflateRoundTrip() {
66 const input = 'Hello, deflate compression!';
67 const result = await roundTrip(input, compressDeflate(), decompressDeflate());
68 assert.strictEqual(result, input);
69}
70
71async function testDeflateLargeData() {
72 const input = 'deflate large data test. '.repeat(5000);

Calls 3

compressDeflateFunction · 0.85
decompressDeflateFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…