(f)
| 40 | |
| 41 | |
| 42 | function 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 | |
| 67 | function checkWrap(req) { |
no test coverage detected
searching dependent graphs…