MCPcopy Create free account
hub / github.com/apache/brpc / HandleSocketSuccessWrite

Function HandleSocketSuccessWrite

test/brpc_socket_unittest.cpp:1497–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495#endif
1496
1497int HandleSocketSuccessWrite(bthread_id_t id, void* data, int error_code,
1498 const std::string& error_text) {
1499 auto success_count = static_cast<size_t*>(data);
1500 EXPECT_NE(nullptr, success_count);
1501 EXPECT_EQ(0, error_code);
1502 ++(*success_count);
1503 CHECK_EQ(0, bthread_id_unlock_and_destroy(id));
1504 return 0;
1505}
1506
1507TEST_F(SocketTest, notify_on_success) {
1508 const size_t REP = 10000;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected