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

Method parseArguments

src/CppUTest/CommandLineTestRunner.cpp:174–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174bool CommandLineTestRunner::parseArguments(TestPlugin* plugin)
175{
176 if (!arguments_->parse(plugin)) {
177 output_ = createConsoleOutput();
178 output_->print((arguments_->needHelp()) ? arguments_->help() : arguments_->usage());
179 return false;
180 }
181
182 if (arguments_->isJUnitOutput()) {
183 output_= createJUnitOutput(arguments_->getPackageName());
184 if (arguments_->isVerbose())
185 output_ = createCompositeOutput(output_, createConsoleOutput());
186 } else if (arguments_->isTeamCityOutput()) {
187 output_ = createTeamCityOutput();
188 } else
189 output_ = createConsoleOutput();
190 return true;
191}
192

Callers

nothing calls this directly

Calls 8

parseMethod · 0.80
needHelpMethod · 0.80
helpMethod · 0.80
usageMethod · 0.80
isJUnitOutputMethod · 0.80
isTeamCityOutputMethod · 0.80
printMethod · 0.45
isVerboseMethod · 0.45

Tested by

no test coverage detected