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

Function TEST_F

tests/tcanalysis/TestGoogletestExtractor.cpp:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36TEST_F(TestGoogletestExtractor, ExtractNormalCodeP) {
37 ASSERT_TRUE(loadCPP(NormalCode));
38 auto Extractor = std::make_unique<GoogleTestExtractor>(*SC.get());
39 ASSERT_TRUE(Extractor);
40 Extractor->load();
41
42 ASSERT_TRUE(Extractor->getTCNames().size() == 2);
43
44 for (auto TCName : Extractor->getTCNames()) {
45 const auto *TC = Extractor->getTC(TCName);
46 auto TCFuncNodes = TC->getTestSequence();
47 ASSERT_TRUE(TCFuncNodes.size() > 0);
48 auto TCFuncs = TC->getLinks();
49 assertGoogletestTeststepWithoutEnvironment(&TCFuncs);
50 }
51}
52
53TEST_F(TestGoogletestExtractor, ExtractWithNotExistTCNameN) {
54 ASSERT_TRUE(loadCPP(NormalCode));

Callers

nothing calls this directly

Calls 7

sizeMethod · 0.80
getTCNamesMethod · 0.80
getTCMethod · 0.80
getTestSequenceMethod · 0.80
getLinksMethod · 0.80
getMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected