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

Function TEST_F

tests/tcanalysis/TestBoostExtractor.cpp:22–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22TEST_F(TestBoostExtractor, ExtractNormalCodeP) {
23 ASSERT_TRUE(loadCPP(NormalTestCode));
24 auto Extractor = std::make_unique<BoostExtractor>(*SC.get());
25 ASSERT_TRUE(Extractor);
26 Extractor->load();
27
28 auto TCNames = Extractor->getTCNames();
29 ASSERT_TRUE(TCNames.size() == 1);
30
31 auto TCName = TCNames[0];
32 ASSERT_TRUE(TCName.compare("test") == 0);
33
34 const auto *TC = Extractor->getTC(TCName);
35 auto TCFuncNodes = TC->getTestSequence();
36 ASSERT_TRUE(TCFuncNodes.size() > 0);
37 ASSERT_TRUE(TCFuncNodes[0].getName().compare("test::test_method") == 0);
38 auto TCFuncs = TC->getLinks();
39 ASSERT_TRUE(TCFuncNodes[0].getName().find("test_method") !=
40 std::string::npos);
41}
42
43TEST_F(TestBoostExtractor, NotExtractTemplateTestN) {
44 ASSERT_TRUE(loadCPP(TemplateTestCode));

Callers

nothing calls this directly

Calls 10

getTCNamesMethod · 0.80
sizeMethod · 0.80
compareMethod · 0.80
getTCMethod · 0.80
getTestSequenceMethod · 0.80
getLinksMethod · 0.80
getMethod · 0.45
loadMethod · 0.45
getNameMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected