| 315 | } |
| 316 | |
| 317 | void GenTestHelper::verifyGenerated(std::string ProjectName) const { |
| 318 | ApprovalTests::ExceptionCollector Exceptions; |
| 319 | auto &Reporter = FuzzGenerator.getFuzzGenReporter(); |
| 320 | auto UTReportMap = Reporter.getUTReportMap(); |
| 321 | for (auto UTReportPair : UTReportMap) { |
| 322 | auto &UT = UTReportPair.first; |
| 323 | auto &UTReport = UTReportPair.second; |
| 324 | if (UTReport->Status != FUZZABLE_SRC_GENERATED) |
| 325 | continue; |
| 326 | auto OutFiles = FuzzFiles; |
| 327 | OutFiles.push_back(UTReport->UTFileName); |
| 328 | for (auto OutFile : OutFiles) { |
| 329 | auto OutFilePath = fs::path(getProjectOutDirPath(ProjectName)) / UT / |
| 330 | UTReport->UTDir / OutFile; |
| 331 | auto Section = ApprovalTests::NamerFactory::appendToOutputFilename( |
| 332 | UT + "." + OutFilePath.stem().string()); |
| 333 | Exceptions.gather([&]() { verifyFile(OutFilePath.string()); }); |
| 334 | } |
| 335 | } |
| 336 | Exceptions.release(); |
| 337 | } |
| 338 | |
| 339 | std::shared_ptr<CompileHelper> |
| 340 | TestHelperFactory::createCompileHelper(std::string Code, std::string Name, |
no test coverage detected