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

Function testInvalidChunkSize

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

Source from the content-addressed store, hash-verified

100
101// Invalid chunkSize throws when transform is invoked
102async function testInvalidChunkSize() {
103 const tx = compressGzip({ chunkSize: 8 });
104 await assert.rejects(
105 async () => await bytes(pull(from('data'), tx)),
106 { code: 'ERR_OUT_OF_RANGE' },
107 );
108}
109
110Promise.all([
111 testAbortMidCompression(),

Calls 4

compressGzipFunction · 0.85
pullFunction · 0.70
bytesFunction · 0.50
fromFunction · 0.50

Tested by

no test coverage detected