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

Class MockCukeEngine

tests/integration/WireProtocolTest.cpp:12–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace testing;
11
12class MockCukeEngine : public CukeEngine {
13public:
14 MOCK_METHOD(std::vector<StepMatch>, stepMatches, (const std::string& name), (const, override));
15 MOCK_METHOD(void, endScenario, (const tags_type& tags), (override));
16 MOCK_METHOD(
17 void,
18 invokeStep,
19 (const std::string& id, const invoke_args_type& args, const invoke_table_type& tableArg),
20 (override)
21 );
22 MOCK_METHOD(void, beginScenario, (const tags_type& tags), (override));
23 MOCK_METHOD(
24 std::string,
25 snippetText,
26 (const std::string& keyword, const std::string& name, const std::string& multilineArgClass),
27 (const, override)
28 );
29};
30
31#define EXPECT_PTRTYPE(classname, expression) \
32 EXPECT_NE(dynamic_cast<const classname*>(expression), (void*)NULL)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected