({ n, algo, keylen })
| 11 | }); |
| 12 | |
| 13 | function main({ n, algo, keylen }) { |
| 14 | const key = Buffer.alloc(keylen, 'k'); |
| 15 | const hmacs = new Array(n); |
| 16 | |
| 17 | bench.start(); |
| 18 | for (let i = 0; i < n; ++i) { |
| 19 | hmacs[i] = createHmac(algo, key); |
| 20 | } |
| 21 | bench.end(n); |
| 22 | |
| 23 | assert.strictEqual(typeof hmacs[n - 1], 'object'); |
| 24 | } |
nothing calls this directly
no test coverage detected