| 86 | const std::string TestFTG::ProjectName = "test_ftg"; |
| 87 | |
| 88 | TEST_F(TestFTG, DefinedTypeP) { |
| 89 | |
| 90 | std::set<std::pair<std::string, FuzzStatus>> APIAnswers = { |
| 91 | {"inputEnum", FUZZABLE_SRC_GENERATED}, |
| 92 | {"inputStruct", FUZZABLE_SRC_GENERATED}, |
| 93 | }; |
| 94 | |
| 95 | ASSERT_TRUE(Helper); |
| 96 | auto &Reporter = Helper->getGenerator().getFuzzGenReporter(); |
| 97 | |
| 98 | for (auto Iter : APIAnswers) { |
| 99 | auto &APIReport = Reporter.getAPIReport(Iter.first); |
| 100 | ASSERT_TRUE(APIReport); |
| 101 | EXPECT_EQ(APIReport->APIStatus.second, Iter.second); |
| 102 | } |
| 103 | |
| 104 | std::set<std::pair<std::string, FuzzStatus>> UTAnswers = { |
| 105 | {"utc_defined_type_p", FUZZABLE_SRC_GENERATED}, |
| 106 | }; |
| 107 | |
| 108 | for (auto Iter : UTAnswers) { |
| 109 | auto &UTReport = Reporter.getUTReport(Iter.first); |
| 110 | ASSERT_TRUE(UTReport); |
| 111 | EXPECT_EQ(UTReport->Status, Iter.second); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | TEST_F(TestFTG, MacroFuncAssignN) { |
| 116 | ASSERT_TRUE(Helper); |
nothing calls this directly
no test coverage detected