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

Function on_numeric_error

test/bthread_id_unittest.cpp:171–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static int on_numeric_error(bthread_id_t id, void* data, int error_code) {
172 std::vector<int>* result = static_cast<std::vector<int>*>(data);
173 result->push_back(error_code);
174 EXPECT_EQ(0, bthread_id_unlock(id));
175 return 0;
176}
177
178TEST(BthreadIdTest, many_error) {
179 bthread_id_t id1;

Callers

nothing calls this directly

Calls 2

bthread_id_unlockFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected