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

Function testConstructor

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

Source from the content-addressed store, hash-verified

57 }
58
59 async function testConstructor() {
60 const ac = new AbortController();
61 const { signal } = ac;
62 ac.abort();
63 const socket = new tls.TLSSocket(undefined, connectOptions(signal));
64 assert.strictEqual(listenerCount(signal, 'abort'), 0);
65 await assertAbort(socket, 'testConstructor');
66 }
67
68 async function testConstructorPost() {
69 const ac = new AbortController();

Calls 4

abortMethod · 0.95
connectOptionsFunction · 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…