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

Method setRepeatCount

src/CppUTest/CommandLineArguments.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void CommandLineArguments::setRepeatCount(int ac, const char *const *av, int& i)
212{
213 repeat_ = 0;
214
215 SimpleString repeatParameter(av[i]);
216 if (repeatParameter.size() > 2) repeat_ = (size_t) (SimpleString::AtoI(av[i] + 2));
217 else if (i + 1 < ac) {
218 repeat_ = (size_t) (SimpleString::AtoI(av[i + 1]));
219 if (repeat_ != 0) i++;
220 }
221
222 if (0 == repeat_) repeat_ = 2;
223
224}
225
226bool CommandLineArguments::setShuffle(int ac, const char * const *av, int& i)
227{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected