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

Function testInvalidBackpressure

test/parallel/test-stream-iter-push-basic.js:154–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154async function testInvalidBackpressure() {
155 assert.throws(() => push({ backpressure: 'banana' }), {
156 code: 'ERR_INVALID_ARG_VALUE',
157 });
158 assert.throws(() => push({ backpressure: '' }), {
159 code: 'ERR_INVALID_ARG_VALUE',
160 });
161
162 // Valid values should not throw
163 for (const bp of ['strict', 'block', 'drop-oldest', 'drop-newest']) {
164 push({ backpressure: bp });
165 }
166}
167
168Promise.all([
169 testBasicWriteRead(),

Callers 1

Calls 1

pushFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…