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

Function readerWorkerMustThrow

lib/cpp/test/TSSLSocketInterruptTest.cpp:107–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void readerWorkerMustThrow(shared_ptr<TTransport> tt) {
108 try {
109 uint8_t buf[400];
110 tt->read(buf, 1);
111 tt->read(buf, 400);
112 BOOST_ERROR("should not have gotten here");
113 } catch (const TTransportException& tx) {
114 BOOST_CHECK_EQUAL(TTransportException::INTERRUPTED, tx.getType());
115 }
116}
117
118shared_ptr<TSSLSocketFactory> createServerSocketFactory() {
119 shared_ptr<TSSLSocketFactory> pServerSocketFactory;

Callers

nothing calls this directly

Calls 2

readMethod · 0.65
getTypeMethod · 0.45

Tested by

no test coverage detected