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

Function handler_without_desc

test/bthread_id_unittest.cpp:505–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503int expected_code = 0;
504const char* expected_desc = "";
505int handler_without_desc(bthread_id_t id, void* data, int error_code) {
506 EXPECT_EQ(DUMMY_DATA1, data);
507 EXPECT_EQ(expected_code, error_code);
508 if (error_code == ESTOP) {
509 branch_tags[0] = branch_counter;
510 return bthread_id_unlock_and_destroy(id);
511 } else {
512 branch_tags[1] = branch_counter;
513 return bthread_id_unlock(id);
514 }
515}
516int handler_with_desc(bthread_id_t id, void* data, int error_code,
517 const std::string& error_text) {
518 EXPECT_EQ(DUMMY_DATA2, data);

Callers

nothing calls this directly

Calls 2

bthread_id_unlockFunction · 0.85

Tested by

no test coverage detected