MCPcopy Create free account
hub / github.com/baidu/babylon / TEST_F

Function TEST_F

test/coroutine/test_futex.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39TEST_F(CoroutineFutexTest, do_not_suspend_if_value_not_match) {
40 executor
41 .execute([&]() -> Task<> {
42 co_return co_await futex.wait(10086);
43 })
44 .get();
45}
46
47TEST_F(CoroutineFutexTest, empty_futex_wakeup_nothing) {
48 ASSERT_EQ(0, futex.wake_one());

Callers

nothing calls this directly

Calls 15

wake_oneMethod · 0.80
wake_allMethod · 0.80
wait_forMethod · 0.80
set_valueMethod · 0.80
get_futureMethod · 0.80
submitMethod · 0.80
getMethod · 0.45
executeMethod · 0.45
waitMethod · 0.45
valueMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected