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

Class CheckAllParametersWithFuncArgs

tests/unit/CukeCommandsTest.cpp:78–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78class CheckAllParametersWithFuncArgs : public CheckAllParameters {
79public:
80 void bodyWithArgs(
81 const int got_arg_0_int,
82 const double got_arg_1_double,
83 const std::string got_arg_2_string,
84 const std::string& got_arg_3_string_with_spaces
85 ) {
86 EXPECT_EQ(arg_0_int, got_arg_0_int);
87 EXPECT_EQ(arg_1_double, got_arg_1_double);
88 EXPECT_EQ(arg_2_string, got_arg_2_string);
89 EXPECT_EQ(arg_3_string_with_spaces, got_arg_3_string_with_spaces);
90 }
91
92 void body() override {
93 return invokeWithArgs(*this, &CheckAllParametersWithFuncArgs::bodyWithArgs);
94 }
95};
96
97TEST_F(CukeCommandsTest, invokeHandlesParametersWithFuncArgs) {
98 // The real test is in TestClass::body()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected