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

Class StepInfoWithTableArg

tests/utils/StepManagerTestDouble.hpp:37–53  ·  view source on GitHub ↗

* FIXME This should be a mock testing it receives a table argument */

Source from the content-addressed store, hash-verified

35 * FIXME This should be a mock testing it receives a table argument
36 */
37class StepInfoWithTableArg : public StepInfo {
38 const unsigned short expectedSize;
39
40public:
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
55class StepManagerTestDouble : public StepManager {
56public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected