* The entry point to Cucumber. * * It uses standard types (as much as possible) to be easier to call. * Returns standard types if possible. */
| 61 | * Returns standard types if possible. |
| 62 | */ |
| 63 | class CukeEngine { |
| 64 | private: |
| 65 | typedef std::vector<std::string> string_array; |
| 66 | typedef std::vector<std::vector<std::string>> string_2d_array; |
| 67 | |
| 68 | public: |
| 69 | typedef string_array tags_type; |
| 70 | typedef string_array invoke_args_type; |
| 71 | typedef string_2d_array invoke_table_type; |
| 72 | |
| 73 | /** |
| 74 | * Finds steps whose regexp match some text. |
| 75 | */ |
| 76 | virtual std::vector<StepMatch> stepMatches(const std::string& name) const = 0; |
| 77 | |
| 78 | /** |
| 79 | * Starts a scenario. |
| 80 | */ |
| 81 | virtual void beginScenario(const tags_type& tags) = 0; |
| 82 | |
| 83 | /** |
| 84 | * Invokes a step passing arguments to it. |
| 85 | * |
| 86 | * @throws InvokeException if the test fails or it is pending |
| 87 | */ |
| 88 | virtual void invokeStep( |
| 89 | const std::string& id, const invoke_args_type& args, const invoke_table_type& tableArg |
| 90 | ) = 0; |
| 91 | |
| 92 | /** |
| 93 | * Ends a scenario. |
| 94 | */ |
| 95 | virtual void endScenario(const tags_type& tags) = 0; |
| 96 | |
| 97 | /** |
| 98 | * Returns the step definition for a pending step. |
| 99 | */ |
| 100 | virtual std::string snippetText( |
| 101 | const std::string& keyword, const std::string& name, const std::string& multilineArgClass |
| 102 | ) const |
| 103 | = 0; |
| 104 | |
| 105 | CUCUMBER_CPP_EXPORT CukeEngine(); |
| 106 | CUCUMBER_CPP_EXPORT virtual ~CukeEngine() = default; |
| 107 | }; |
| 108 | |
| 109 | } |
| 110 | } |
nothing calls this directly
no outgoing calls
no test coverage detected