| 76 | }; |
| 77 | |
| 78 | class CheckAllParametersWithFuncArgs : public CheckAllParameters { |
| 79 | public: |
| 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 | |
| 97 | TEST_F(CukeCommandsTest, invokeHandlesParametersWithFuncArgs) { |
| 98 | // The real test is in TestClass::body() |
nothing calls this directly
no outgoing calls
no test coverage detected