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

Function checkCloseEvents

lib/cpp/test/processor/ProcessorTest.cpp:317–325  ·  view source on GitHub ↗

* Check for the events that should be logged when a connection is closed. */

Source from the content-addressed store, hash-verified

315 * Check for the events that should be logged when a connection is closed.
316 */
317void checkCloseEvents(const std::shared_ptr<EventLog>& log, uint32_t connId) {
318 // Check for an ET_CONN_DESTROYED event
319 Event event = log->waitForEvent();
320 BOOST_CHECK_EQUAL(EventLog::ET_CONN_DESTROYED, event.type);
321 BOOST_CHECK_EQUAL(connId, event.connectionId);
322
323 // Make sure there are no more events
324 checkNoEvents(log);
325}
326
327/**
328 * Check for the events that should be logged when a call is received

Callers 4

testSeparateConnectionsFunction · 0.85
testOnewayCallFunction · 0.85
testExpectedErrorFunction · 0.85
testUnexpectedErrorFunction · 0.85

Calls 2

checkNoEventsFunction · 0.85
waitForEventMethod · 0.45

Tested by

no test coverage detected