MCPcopy Create free account
hub / github.com/cpputest/cpputest / listTestGroupNames

Method listTestGroupNames

src/CppUTest/TestRegistry.cpp:76–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void TestRegistry::listTestGroupNames(TestResult& result)
77{
78 SimpleString groupList;
79
80 for (UtestShell *test = tests_; test != NULLPTR; test = test->getNext()) {
81 SimpleString gname;
82 gname += "#";
83 gname += test->getGroup();
84 gname += "#";
85
86 if (!groupList.contains(gname)) {
87 groupList += gname;
88 groupList += " ";
89 }
90 }
91
92 groupList.replace("#", "");
93
94 if (groupList.endsWith(" "))
95 groupList = groupList.subString(0, groupList.size() - 1);
96 result.print(groupList.asCharString());
97}
98
99void TestRegistry::listTestGroupAndCaseNames(TestResult& result)
100{

Callers 2

runAllTestsMethod · 0.80
TESTFunction · 0.80

Calls 9

getGroupMethod · 0.80
containsMethod · 0.80
replaceMethod · 0.80
endsWithMethod · 0.80
subStringMethod · 0.80
asCharStringMethod · 0.80
getNextMethod · 0.45
sizeMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected