MCPcopy Create free account
hub / github.com/nodejs/node / badSource

Function badSource

test/parallel/test-stream-iter-consumers-merge.js:96–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 }
95
96 async function* badSource() {
97 yield [new TextEncoder().encode('x')];
98 throw new Error('merge source boom');
99 }
100 await assert.rejects(
101 async () => {
102 // eslint-disable-next-line no-unused-vars

Callers 2

testMergeSourceErrorFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected