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

Function testConstructorPost

test/parallel/test-net-connect-abort-controller.js:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 async function testConstructorPost() {
67 const ac = new AbortController();
68 const { signal } = ac;
69 const socket = new net.Socket(socketOptions(signal));
70 assert.strictEqual(listenerCount(signal, 'abort'), 1);
71 ac.abort();
72 await assertAbort(socket, 'testConstructorPost');
73 }
74
75 async function testConstructorPostTick() {
76 const ac = new AbortController();

Calls 4

abortMethod · 0.95
socketOptionsFunction · 0.85
listenerCountFunction · 0.85
assertAbortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…