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

Function test

test/internet/test-dns.js:42–64  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

40
41
42function test(f) {
43 function next() {
44 const f = queue.shift();
45 if (f) {
46 running = true;
47 console.log(f.name);
48 f(done)?.then(common.mustCall());
49 }
50 }
51
52 function done() {
53 running = false;
54 completed++;
55 process.nextTick(next);
56 }
57
58 expected++;
59 queue.push(f);
60
61 if (!running) {
62 next();
63 }
64}
65
66
67function checkWrap(req) {

Callers 4

test-dns.jsFile · 0.70
test.jsFile · 0.50
spawnAndAssertFunction · 0.50

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…