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

Method loadTestcases

deps/v8/tools/clusterfuzz/js_fuzzer/corpus.js:181–193  ·  view source on GitHub ↗
(relPaths)

Source from the content-addressed store, hash-verified

179 }
180
181 *loadTestcases(relPaths) {
182 for (const relPath of relPaths) {
183 if (this.extraStrict) {
184 // When re-generating the files marked sloppy, we additionally test if
185 // the file parses in strict mode.
186 this.loadTestcase(relPath, true, 'strict');
187 }
188 const source = this.loadTestcase(relPath, false, 'sloppy');
189 if (source) {
190 yield source;
191 }
192 }
193 }
194
195 getRandomTestcases(count) {
196 return Array.from(this.loadTestcases(this.getRandomTestcasePaths(count)));

Callers 2

getRandomTestcasesMethod · 0.95
getAllTestcasesMethod · 0.95

Calls 1

loadTestcaseMethod · 0.95

Tested by

no test coverage detected