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

Method test_communicate

lib/cpp/test/qt/TQTcpServerTest.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void TQTcpServerTest::test_communicate() {
97 client->addString("foo");
98 client->addString("bar");
99
100 std::vector<std::string> reply;
101 client->getStrings(reply);
102 QCOMPARE(QString::fromStdString(reply[0]), QString("foo"));
103 QCOMPARE(QString::fromStdString(reply[1]), QString("bar"));
104}
105
106
107#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))

Callers

nothing calls this directly

Calls 2

addStringMethod · 0.45
getStringsMethod · 0.45

Tested by

no test coverage detected