()
| 7 | const histogram = createHistogram(); |
| 8 | |
| 9 | const m = () => { |
| 10 | // Deterministic blocking delay (~1 millisecond). The histogram operates on |
| 11 | // nanosecond precision, so this should be sufficient to prevent zero timings. |
| 12 | sleepSync(1); |
| 13 | }; |
| 14 | const n = timerify(m, { histogram }); |
| 15 | assert.strictEqual(histogram.max, 0); |
| 16 | for (let i = 0; i < 10; i++) { |
nothing calls this directly
no test coverage detected