| 503 | int expected_code = 0; |
| 504 | const char* expected_desc = ""; |
| 505 | int 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 | } |
| 516 | int handler_with_desc(bthread_id_t id, void* data, int error_code, |
| 517 | const std::string& error_text) { |
| 518 | EXPECT_EQ(DUMMY_DATA2, data); |
nothing calls this directly
no test coverage detected