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

Method dump

lib/utanalysis/UTAnalyzer.cpp:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool UTAnalyzer::dump(std::string OutputFilePath) {
46 Json::Value Root;
47 for (auto &Report : Reports) {
48 if (!Report)
49 continue;
50
51 auto ReportJson = Report->toJson();
52 for (auto MemberName : ReportJson.getMemberNames())
53 Root[MemberName] = ReportJson[MemberName];
54 }
55
56 Json::StreamWriterBuilder Writer;
57 std::ofstream Ofs(OutputFilePath);
58 Ofs << Json::writeString(Writer, Root);
59 Ofs.close();
60 return true;
61}
62
63std::vector<Unittest> UTAnalyzer::extractUnittests() const {
64 assert(Extractor && Loader && "Unexpected Program State");

Callers 6

mainFunction · 0.45
mainFunction · 0.45
make_build_dbMethod · 0.45
dumpReportMethod · 0.45
TESTFunction · 0.45
printASTUnitsMethod · 0.45

Calls 3

writeStringFunction · 0.85
getMemberNamesMethod · 0.80
toJsonMethod · 0.45

Tested by 2

dumpReportMethod · 0.36
TESTFunction · 0.36