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

Function peekerWorker

lib/cpp/test/TSSLSocketInterruptTest.cpp:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void peekerWorker(shared_ptr<TTransport> tt, bool expectedResult) {
216 uint8_t buf[400];
217 try {
218 tt->read(buf, 1);
219 BOOST_CHECK_EQUAL(expectedResult, tt->peek());
220 } catch (const TTransportException& tx) {
221 BOOST_CHECK_EQUAL(TTransportException::TIMED_OUT, tx.getType());
222 }
223}
224
225void peekerWorkerInterrupt(shared_ptr<TTransport> tt) {
226 uint8_t buf[400];

Callers

nothing calls this directly

Calls 3

readMethod · 0.65
peekMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected