| 33 | } |
| 34 | |
| 35 | bool GenLoader::loadTarget(const std::string &TargetReportDir) { |
| 36 | std::vector<std::string> ReportPath; |
| 37 | try { |
| 38 | for (auto TargetReportFile : util::readDirectory(TargetReportDir)) { |
| 39 | auto JsonString = util::readFile(TargetReportFile.c_str()); |
| 40 | Json::Value JsonValue = util::strToJson(JsonString); |
| 41 | DirectionReport.fromJson(JsonValue); |
| 42 | ParamNumberReport.fromJson(JsonValue); |
| 43 | TypeReport.fromJson(JsonValue); |
| 44 | } |
| 45 | } catch (std::invalid_argument &E) { |
| 46 | return false; |
| 47 | } |
| 48 | return true; |
| 49 | } |
| 50 | |
| 51 | bool GenLoader::loadUT(const std::string &UTReportPath) { |
| 52 | auto JsonValue = util::parseJsonFileToJsonValue(UTReportPath.c_str()); |
nothing calls this directly
no test coverage detected