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

Function TEST_F

tests/generation/TestFTG.cpp:88–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86const std::string TestFTG::ProjectName = "test_ftg";
87
88TEST_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
115TEST_F(TestFTG, MacroFuncAssignN) {
116 ASSERT_TRUE(Helper);

Callers

nothing calls this directly

Calls 15

TestHelperFactoryClass · 0.85
verifyFilesFunction · 0.85
getAPIReportMethod · 0.80
getUTReportMethod · 0.80
verifyGeneratedMethod · 0.80
endMethod · 0.80
createTATestHelperMethod · 0.80
getSrcDirPathMethod · 0.80
createUATestHelperMethod · 0.80
addTAMethod · 0.80
beginMethod · 0.80
getOutDirPathMethod · 0.80

Tested by

no test coverage detected