| 8 | bool GTestStep::initialized(false); |
| 9 | |
| 10 | const InvokeResult GTestStep::invokeStepBody() { |
| 11 | if (!initialized) { |
| 12 | initGTest(); |
| 13 | initFlags(); |
| 14 | } |
| 15 | try { |
| 16 | body(); |
| 17 | return InvokeResult::success(); |
| 18 | } catch (const ::std::runtime_error& e) { |
| 19 | // ::testing::GoogleTestFailureException inherits from ::std::runtime_error |
| 20 | return InvokeResult::failure(e.what()); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | void GTestStep::initGTest() { |
| 25 | int fake_argc = 1; |
nothing calls this directly
no outgoing calls
no test coverage detected