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

Function testGzipWithChunkSize

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

Source from the content-addressed store, hash-verified

91
92// Gzip with custom chunkSize
93async function testGzipWithChunkSize() {
94 const input = 'chunk size test';
95 const c = compressGzip({ chunkSize: 256 });
96 const d = decompressGzip({ chunkSize: 256 });
97 const result = await roundTrip(input, c, d);
98 assert.strictEqual(result, input);
99}
100
101// Invalid chunkSize throws when transform is invoked
102async function testInvalidChunkSize() {

Calls 3

compressGzipFunction · 0.85
decompressGzipFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected