MCPcopy Create free account
hub / github.com/nodejs/node / inputGen

Method inputGen

deps/v8/tools/clusterfuzz/js_fuzzer/runner.js:142–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }
141
142 *inputGen() {
143 for (let i = 0; i < this.numFiles; i++) {
144 const count = random.randInt(1, this.maxTestInputs);
145 const inputs = [];
146 for (let j= 0; j < count; j++) {
147 inputs.push(...random.single(this.corpora).getRandomTestcases(1));
148 }
149
150 if (inputs.length > 0) {
151 yield inputs;
152 }
153 }
154 }
155}
156
157/**

Callers

nothing calls this directly

Calls 2

getRandomTestcasesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected