| 138 | } |
| 139 | |
| 140 | static void testVoid_clientReturn(event_base* base, ThriftTestCobClient* client) { |
| 141 | try { |
| 142 | client->recv_testVoid(); |
| 143 | cout << "testVoid" << '\n'; |
| 144 | |
| 145 | for (int testNr = 0; testNr < 10; ++testNr) { |
| 146 | std::ostringstream os; |
| 147 | os << "test" << testNr; |
| 148 | client->testString(std::bind(testString_clientReturn, |
| 149 | base, |
| 150 | testNr, |
| 151 | std::placeholders::_1), |
| 152 | os.str()); |
| 153 | } |
| 154 | } catch (TException& exn) { |
| 155 | cout << "Error: " << exn.what() << '\n'; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | // Workaround for absense of C++11 "auto" keyword. |
| 160 | template <typename T> |
nothing calls this directly
no test coverage detected