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

Method inputGen

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

Source from the content-addressed store, hash-verified

87 }
88
89 *inputGen() {
90 const primary = this.corpora[this.primary];
91 const secondary = Object.values(this.corpora);
92
93 for (let i = 0; i < this.numFiles; i++) {
94 const inputs = getRandomInputs(
95 primary,
96 random.shuffle(secondary),
97 this.maxTestInputs);
98
99 if (inputs.length > 0) {
100 yield inputs;
101 }
102 }
103 }
104}
105
106/**

Callers

nothing calls this directly

Calls 3

getRandomInputsFunction · 0.85
shuffleMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected