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

Function testTapCallbackError

test/parallel/test-stream-iter-pull-async.js:131–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129
130// Tap callback error propagates through pipeline
131async function testTapCallbackError() {
132 const badTap = tap(() => { throw new Error('tap boom'); });
133 await assert.rejects(async () => {
134 // eslint-disable-next-line no-unused-vars
135 for await (const _ of pull(from('hello'), badTap)) { /* consume */ }
136 }, { message: 'tap boom' });
137}
138
139// Pull signal aborted mid-iteration (not pre-aborted)
140async function testPullSignalAbortMidIteration() {

Callers 1

Calls 3

tapFunction · 0.85
pullFunction · 0.70
fromFunction · 0.50

Tested by

no test coverage detected