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

Function testConstructor

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

Source from the content-addressed store, hash-verified

55 }
56
57 async function testConstructor() {
58 const ac = new AbortController();
59 const { signal } = ac;
60 ac.abort();
61 const socket = new net.Socket(socketOptions(signal));
62 assert.strictEqual(listenerCount(signal, 'abort'), 0);
63 await assertAbort(socket, 'testConstructor');
64 }
65
66 async function testConstructorPost() {
67 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…