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

Function test

test/internet/test-dns-ipv6.js:16–36  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

14const queue = [];
15
16function test(f) {
17 function next() {
18 const f = queue.shift();
19 if (f) {
20 running = true;
21 console.log(f.name);
22 f(done)?.then(common.mustCall());
23 }
24 }
25
26 function done() {
27 running = false;
28 process.nextTick(next);
29 }
30
31 queue.push(f);
32
33 if (!running) {
34 next();
35 }
36}
37
38function checkWrap(req) {
39 assert.ok(typeof req === 'object');

Callers 1

test-dns-ipv6.jsFile · 0.70

Calls 2

nextFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…