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

Method addTestToRunBasedOnVerboseOutput

src/CppUTest/CommandLineArguments.cpp:326–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void CommandLineArguments::addTestToRunBasedOnVerboseOutput(int ac, const char *const *av, int& index, const char* parameterName)
327{
328 SimpleString wholename = getParameterField(ac, av, index, parameterName);
329 SimpleString testname = wholename.subStringFromTill(',', ')');
330 testname = testname.subString(2);
331 TestFilter* namefilter = new TestFilter(testname);
332 TestFilter* groupfilter = new TestFilter(wholename.subStringFromTill(wholename.at(0), ','));
333 namefilter->strictMatching();
334 groupfilter->strictMatching();
335 groupFilters_ = groupfilter->add(groupFilters_);
336 nameFilters_ = namefilter->add(nameFilters_);
337}
338
339void CommandLineArguments::setPackageName(int ac, const char *const *av, int& i)
340{

Callers

nothing calls this directly

Calls 5

subStringFromTillMethod · 0.80
subStringMethod · 0.80
atMethod · 0.80
strictMatchingMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected