({ n, dir, withFileTypes })
| 12 | |
| 13 | |
| 14 | function main({ n, dir, withFileTypes }) { |
| 15 | withFileTypes = withFileTypes === 'true'; |
| 16 | const fullPath = path.resolve(__dirname, '../../', dir); |
| 17 | bench.start(); |
| 18 | for (let i = 0; i < n; i++) { |
| 19 | fs.readdirSync(fullPath, { withFileTypes }); |
| 20 | } |
| 21 | bench.end(n); |
| 22 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…