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

Function testBrotliRoundTrip

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

Source from the content-addressed store, hash-verified

89// =============================================================================
90
91function testBrotliRoundTrip() {
92 const input = 'Hello, sync brotli compression!';
93 const result = roundTrip(input, compressBrotliSync(),
94 decompressBrotliSync());
95 assert.strictEqual(result, input);
96}
97
98function testBrotliLargeData() {
99 const input = 'brotli sync large data test. '.repeat(5000);

Calls 3

compressBrotliSyncFunction · 0.85
decompressBrotliSyncFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…