MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / run

Method run

test/fixture.cpp:364–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void TestFixture::run(const std::set<std::string> &tests)
365{
366 testsToRun = tests;
367 try {
368 if (quiet_tests) {
369 std::cout << '\n' << classname << ':';
370 SUPPRESS;
371 run();
372 }
373 else
374 run();
375 }
376 catch (const InternalError& e) {
377 ++fails_counter;
378 errmsg << classname << "::" << mTestname << " - InternalError: " << e.errorMessage << std::endl;
379 }
380 catch (const std::exception& error) {
381 ++fails_counter;
382 errmsg << classname << "::" << mTestname << " - Exception: " << error.what() << std::endl;
383 }
384 catch (...) {
385 ++fails_counter;
386 errmsg << classname << "::" << mTestname << " - Unknown exception" << std::endl;
387 }
388}
389
390void TestFixture::processOptions(const options& args)
391{

Callers 1

runTestsMethod · 0.45

Calls 1

runFunction · 0.50

Tested by

no test coverage detected