| 10 | } |
| 11 | |
| 12 | bool FilePathAnalysisReport::fromJson(Json::Value Report) { |
| 13 | try { |
| 14 | if (!Report.isMember(getReportType())) |
| 15 | return false; |
| 16 | |
| 17 | auto FilePathReport = Report[getReportType()]; |
| 18 | for (auto MemberName : FilePathReport.getMemberNames()) { |
| 19 | set(MemberName, FilePathReport[MemberName].asBool()); |
| 20 | } |
| 21 | } catch (Json::Exception &E) { |
| 22 | return false; |
| 23 | } |
| 24 | return true; |
| 25 | } |
| 26 | |
| 27 | const std::string FilePathAnalysisReport::getReportType() const { |
| 28 | return "FilePath"; |
nothing calls this directly
no test coverage detected