| 268 | } |
| 269 | |
| 270 | static Valdi::Result<TestCaseData> parseMetaData(const string& content) { |
| 271 | const string metadata_start("/*---"); |
| 272 | const string metadata_end("---*/"); |
| 273 | |
| 274 | auto metadata_start_position = content.find(metadata_start); |
| 275 | if (metadata_start_position != string::npos) { |
| 276 | auto metadata_end_position = content.find(metadata_end); |
| 277 | |
| 278 | if (metadata_end_position != string::npos) { |
| 279 | auto metadata_contents = |
| 280 | content.substr(metadata_start_position + metadata_start.length(), |
| 281 | metadata_end_position - metadata_start_position - metadata_start.length()); |
| 282 | |
| 283 | return parseMetaDataComment(metadata_contents); |
| 284 | } |
| 285 | } |
| 286 | return {}; |
| 287 | } |
| 288 | |
| 289 | bool processTestDirectory(const fs::path& test262Directory, const fs::path& outputFile) { |
| 290 | auto testDirectory = test262Directory / "test"; |
no test coverage detected