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

Class CukeCommandsFixture

tests/utils/CukeCommandsFixture.hpp:18–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18class CukeCommandsFixture : public ::testing::Test, public CukeCommands {
19 typedef StepManagerTestDouble StepManager;
20
21public:
22 const static std::string STATIC_MATCHER;
23
24protected:
25 step_id_type stepId;
26
27 template<class T>
28 void runStepBodyTest() {
29 addStepToManager<T>(STATIC_MATCHER);
30 const InvokeArgs spArgs(T::buildInvokeArgs());
31 invoke(stepId, &spArgs);
32 }
33
34 template<class T>
35 void addStepToManager(const std::string& matcher) {
36 stepId = StepManager::addStep(std::make_shared<StepInvoker<T>>(matcher, ""));
37 }
38
39 void TearDown() override {
40 StepManager::clearSteps();
41 }
42};
43
44const std::string CukeCommandsFixture::STATIC_MATCHER("MATCHER");
45

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected