MCPcopy Create free account
hub / github.com/Samsung/UTopia / verifyGenerated

Method verifyGenerated

tests/TestHelper.cpp:317–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void 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
339std::shared_ptr<CompileHelper>
340TestHelperFactory::createCompileHelper(std::string Code, std::string Name,

Callers 1

TEST_FFunction · 0.80

Calls 4

getProjectOutDirPathFunction · 0.85
verifyFileFunction · 0.85
gatherMethod · 0.80
releaseMethod · 0.80

Tested by

no test coverage detected