(f)
| 14 | const queue = []; |
| 15 | |
| 16 | function 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 | |
| 38 | function checkWrap(req) { |
| 39 | assert.ok(typeof req === 'object'); |
no test coverage detected
searching dependent graphs…