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

Function testPreAbortedSignal

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

Source from the content-addressed store, hash-verified

109}
110
111async function testPreAbortedSignal() {
112 const { readable } = push({ signal: AbortSignal.abort() });
113 await assert.rejects(async () => {
114 // eslint-disable-next-line no-unused-vars
115 for await (const _ of readable) {
116 assert.fail('Should not reach here');
117 }
118 }, { name: 'AbortError' });
119}
120
121async function testConsumerBreakWriteSyncReturnsFalse() {
122 const { writer, readable } = push({ highWaterMark: 10 });

Callers 1

Calls 3

pushFunction · 0.70
abortMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…