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

Function assertAbort

test/parallel/test-tls-connect-abort-controller.js:26–30  ·  view source on GitHub ↗
(socket, testName)

Source from the content-addressed store, hash-verified

24 });
25
26 function assertAbort(socket, testName) {
27 return assert.rejects(() => once(socket, 'close'), {
28 name: 'AbortError',
29 }, `close ${testName} should have thrown`);
30 }
31
32 async function postAbort() {
33 const ac = new AbortController();

Callers 12

postAbortFunction · 0.85
preAbortFunction · 0.85
tickAbortFunction · 0.85
testConstructorFunction · 0.85
testConstructorPostFunction · 0.85
testConstructorPostTickFunction · 0.85
postAbortFunction · 0.85
preAbortFunction · 0.85
tickAbortFunction · 0.85
testConstructorFunction · 0.85
testConstructorPostFunction · 0.85
testConstructorPostTickFunction · 0.85

Calls 1

onceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…