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

Function testDeflateLargeData

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

Source from the content-addressed store, hash-verified

69}
70
71async function testDeflateLargeData() {
72 const input = 'deflate large data test. '.repeat(5000);
73 const result = await roundTrip(input, compressDeflate(), decompressDeflate());
74 assert.strictEqual(result, input);
75}
76
77async function testDeflateActuallyCompresses() {
78 const input = 'Repeated data compresses well. '.repeat(1000);

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…