| 10 | using namespace testing; |
| 11 | |
| 12 | class MockCukeEngine : public CukeEngine { |
| 13 | public: |
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected