* FIXME This should be a mock testing it receives a table argument */
| 35 | * FIXME This should be a mock testing it receives a table argument |
| 36 | */ |
| 37 | class StepInfoWithTableArg : public StepInfo { |
| 38 | const unsigned short expectedSize; |
| 39 | |
| 40 | public: |
| 41 | StepInfoWithTableArg(const std::string& stepMatcher, const unsigned short expectedSize) : |
| 42 | StepInfo(stepMatcher, ""), |
| 43 | expectedSize(expectedSize) { |
| 44 | } |
| 45 | |
| 46 | InvokeResult invokeStep(const InvokeArgs* pArgs) const override { |
| 47 | if (pArgs->getTableArg().hashes().size() == expectedSize) { |
| 48 | return InvokeResult::success(); |
| 49 | } else { |
| 50 | return InvokeResult::failure("Failed"); |
| 51 | } |
| 52 | } |
| 53 | }; |
| 54 | |
| 55 | class StepManagerTestDouble : public StepManager { |
| 56 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected