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

Function testConstructorPost

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

Source from the content-addressed store, hash-verified

66 }
67
68 async function testConstructorPost() {
69 const ac = new AbortController();
70 const { signal } = ac;
71 const socket = new tls.TLSSocket(undefined, connectOptions(signal));
72 assert.strictEqual(listenerCount(signal, 'abort'), 1);
73 ac.abort();
74 await assertAbort(socket, 'testConstructorPost');
75 }
76
77 async function testConstructorPostTick() {
78 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…