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

Function testBrotliRoundTrip

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

Source from the content-addressed store, hash-verified

88// =============================================================================
89
90async function testBrotliRoundTrip() {
91 const input = 'Hello, brotli compression!';
92 const result = await roundTrip(input, compressBrotli(), decompressBrotli());
93 assert.strictEqual(result, input);
94}
95
96async function testBrotliLargeData() {
97 const input = 'brotli large data test. '.repeat(5000);

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…