MCPcopy Index your code
hub / github.com/nodejs/node / makeTest

Function makeTest

benchmark/es/spread-bench.js:14–23  ·  view source on GitHub ↗
(count, rest)

Source from the content-addressed store, hash-verified

12});
13
14function makeTest(count, rest) {
15 if (rest) {
16 return function test(...args) {
17 assert.strictEqual(count, args.length);
18 };
19 }
20 return function test() {
21 assert.strictEqual(count, arguments.length);
22 };
23}
24
25function main({ n, context, count, rest, method }) {
26 const ctx = context === 'context' ? {} : null;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…