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

Method addGroupDotNameFilter

src/CppUTest/CommandLineArguments.cpp:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263bool CommandLineArguments::addGroupDotNameFilter(int ac, const char *const *av, int& i)
264{
265 SimpleString groupDotName = getParameterField(ac, av, i, "-t");
266 SimpleStringCollection collection;
267 groupDotName.split(".", collection);
268
269 if (collection.size() != 2) return false;
270
271 groupFilters_ = (new TestFilter(collection[0].subString(0, collection[0].size()-1)))->add(groupFilters_);
272 nameFilters_ = (new TestFilter(collection[1]))->add(nameFilters_);
273 return true;
274}
275
276void CommandLineArguments::addStrictGroupFilter(int ac, const char *const *av, int& i)
277{

Callers

nothing calls this directly

Calls 4

splitMethod · 0.80
subStringMethod · 0.80
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected