| 12 | using namespace ftg; |
| 13 | |
| 14 | TEST(TestConstantAnalyerReport, SerializeP) { |
| 15 | auto AST = |
| 16 | clang::tooling::buildASTFromCode("const int IntConst = 1;" |
| 17 | "int IntVar = 1;" |
| 18 | "const double DoubleConst = 1.5;"); |
| 19 | std::vector<clang::ASTUnit *> ASTUnits; |
| 20 | ASTUnits.push_back(AST.get()); |
| 21 | ConstAnalyzer Analyzer(ASTUnits); |
| 22 | auto Report = Analyzer.getReport(); |
| 23 | auto JsonReport = Report->toJson(); |
| 24 | |
| 25 | auto JsonStr = JsonReport.toStyledString(); |
| 26 | ApprovalTests::Approvals::verify(JsonStr); |
| 27 | } |
| 28 | |
| 29 | TEST(TestConstantAnalyerReport, DeserializeP) { |
| 30 | Json::Value Root; |
nothing calls this directly
no test coverage detected