MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / invokeStepBody

Method invokeStepBody

src/drivers/GTestDriver.cpp:10–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8bool GTestStep::initialized(false);
9
10const 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
24void GTestStep::initGTest() {
25 int fake_argc = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected