({ n, input, type })
| 21 | }); |
| 22 | |
| 23 | function main({ n, input, type }) { |
| 24 | const { |
| 25 | formatList, |
| 26 | } = require('internal/errors'); |
| 27 | |
| 28 | const list = input.split(','); |
| 29 | |
| 30 | if (type === 'undefined') { |
| 31 | bench.start(); |
| 32 | for (let i = 0; i < n; ++i) { |
| 33 | formatList(list); |
| 34 | } |
| 35 | bench.end(n); |
| 36 | return; |
| 37 | } |
| 38 | |
| 39 | bench.start(); |
| 40 | for (let i = 0; i < n; ++i) { |
| 41 | formatList(list, type); |
| 42 | } |
| 43 | bench.end(n); |
| 44 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…