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

Method analyze

tests/TestHelper.cpp:142–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142bool TATestHelper::analyze() {
143 if (!Compile)
144 return false;
145
146 auto ExternalReportDir = getUniqueFilePath(getTmpDirPath(), "target", "");
147 if (!fs::create_directories(ExternalReportDir))
148 return false;
149
150 for (auto &External : Externals) {
151 if (!External)
152 continue;
153
154 auto ExternalReportPath =
155 getUniqueFilePath(ExternalReportDir, "external", "json");
156 if (!External->dumpReport(ExternalReportPath))
157 continue;
158 }
159
160 Analyzer = std::make_unique<TargetLibAnalyzer>(
161 Compile, std::make_shared<APIManualLoader>(), ExternalReportDir);
162 if (!Analyzer)
163 return false;
164
165 fs::remove_all(ExternalReportDir);
166 return Analyzer->analyze();
167}
168
169bool TATestHelper::dumpReport(std::string Path) {
170 if (!Analyzer)

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 3

getUniqueFilePathFunction · 0.85
getTmpDirPathFunction · 0.85
dumpReportMethod · 0.80

Tested by

no test coverage detected