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

Function readerWorker

lib/cpp/test/TSSLSocketInterruptTest.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95#endif
96
97void readerWorker(shared_ptr<TTransport> tt, uint32_t expectedResult) {
98 uint8_t buf[4];
99 try {
100 tt->read(buf, 1);
101 BOOST_CHECK_EQUAL(expectedResult, tt->read(buf, 4));
102 } catch (const TTransportException& tx) {
103 BOOST_CHECK_EQUAL(TTransportException::TIMED_OUT, tx.getType());
104 }
105}
106
107void readerWorkerMustThrow(shared_ptr<TTransport> tt) {
108 try {

Callers

nothing calls this directly

Calls 2

readMethod · 0.65
getTypeMethod · 0.45

Tested by

no test coverage detected