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

Method run

src/CppUTest/Utest.cpp:595–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593#if CPPUTEST_USE_STD_CPP_LIB
594
595void Utest::run()
596{
597 UtestShell* current = UtestShell::getCurrent();
598 int jumpResult = 0;
599 try {
600 current->printVeryVerbose("\n-------- before setup: ");
601 jumpResult = PlatformSpecificSetJmp(helperDoTestSetup, this);
602 current->printVeryVerbose("\n-------- after setup: ");
603
604 if (jumpResult) {
605 current->printVeryVerbose("\n---------- before body: ");
606 PlatformSpecificSetJmp(helperDoTestBody, this);
607 current->printVeryVerbose("\n---------- after body: ");
608 }
609 }
610 catch (CppUTestFailedException&)
611 {
612 PlatformSpecificRestoreJumpBuffer();
613 }
614
615 try {
616 current->printVeryVerbose("\n-------- before teardown: ");
617 PlatformSpecificSetJmp(helperDoTestTeardown, this);
618 current->printVeryVerbose("\n-------- after teardown: ");
619 }
620 catch (CppUTestFailedException&)
621 {
622 PlatformSpecificRestoreJumpBuffer();
623 }
624
625}
626#else
627
628void Utest::run()

Callers 1

Calls 3

PlatformSpecificSetJmpFunction · 0.85
printVeryVerboseMethod · 0.45

Tested by

no test coverage detected