(relPaths)
| 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))); |
no test coverage detected