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

Function testBrotliWithOptions

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

Source from the content-addressed store, hash-verified

132}
133
134function testBrotliWithOptions() {
135 const zlib = require('zlib');
136 const input = 'brotli options test data '.repeat(100);
137 const result = roundTrip(input,
138 compressBrotliSync({
139 params: {
140 [zlib.constants.BROTLI_PARAM_QUALITY]: 3,
141 },
142 }),
143 decompressBrotliSync());
144 assert.strictEqual(result, input);
145}
146
147// =============================================================================
148// Stateless + stateful sync transform pipeline

Calls 4

compressBrotliSyncFunction · 0.85
decompressBrotliSyncFunction · 0.85
roundTripFunction · 0.70
requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…