(func, arg)
| 181 | } |
| 182 | |
| 183 | const runPromiseTest = async (func, arg) => { |
| 184 | const startTime = process.hrtime.bigint(); |
| 185 | const bigintStats = await func(arg, common.mustNotMutateObjectDeep({ bigint: true })); |
| 186 | const numStats = await func(arg); |
| 187 | const endTime = process.hrtime.bigint(); |
| 188 | const allowableDelta = Math.ceil(Number(endTime - startTime) / 1e6); |
| 189 | verifyStats(bigintStats, numStats, allowableDelta); |
| 190 | }; |
| 191 | |
| 192 | { |
| 193 | const filename = getFilename(); |
no test coverage detected
searching dependent graphs…