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

Function testBrotliWithParams

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

Source from the content-addressed store, hash-verified

73
74// Brotli with custom quality param
75async function testBrotliWithParams() {
76 const input = 'brotli params test '.repeat(100);
77 const params = { [constants.BROTLI_PARAM_QUALITY]: 5 };
78 const result = await roundTrip(input, compressBrotli({ params }),
79 decompressBrotli());
80 assert.strictEqual(result, input);
81}
82
83// Zstd with custom compression level param
84async function testZstdWithParams() {

Calls 3

compressBrotliFunction · 0.85
decompressBrotliFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected