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

Function testBrotliLargeData

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

Source from the content-addressed store, hash-verified

94}
95
96async function testBrotliLargeData() {
97 const input = 'brotli large data test. '.repeat(5000);
98 const result = await roundTrip(input, compressBrotli(), decompressBrotli());
99 assert.strictEqual(result, input);
100}
101
102async function testBrotliActuallyCompresses() {
103 const input = 'Repeated data compresses well. '.repeat(1000);

Calls 3

compressBrotliFunction · 0.85
decompressBrotliFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…