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

Method storeTargetAnalysisReport

tests/TestHelper.cpp:297–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295const Generator &GenTestHelper::getGenerator() const { return FuzzGenerator; }
296
297bool GenTestHelper::storeTargetAnalysisReport(std::string DirPath) {
298
299 if (!UA)
300 return false;
301 if (fs::exists(DirPath))
302 return false;
303 if (!fs::create_directories(DirPath))
304 return false;
305
306 unsigned cnt = 0;
307 for (auto &TA : UA->getTATestHelpers()) {
308 std::string Path = (fs::path(DirPath) /
309 fs::path(std::to_string(cnt++) + ".json").string());
310 if (!TA->dumpReport(Path))
311 return false;
312 }
313
314 return true;
315}
316
317void GenTestHelper::verifyGenerated(std::string ProjectName) const {
318 ApprovalTests::ExceptionCollector Exceptions;

Callers

nothing calls this directly

Calls 2

getTATestHelpersMethod · 0.80
dumpReportMethod · 0.80

Tested by

no test coverage detected