MCPcopy Create free account
hub / github.com/apache/thrift / testVoid_clientReturn

Function testVoid_clientReturn

test/cpp/src/TestClient.cpp:140–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static 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.
160template <typename T>

Callers

nothing calls this directly

Calls 4

strMethod · 0.80
bindFunction · 0.50
testStringMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected