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

Function TEST

test/test_future.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using ::babylon::Promise;
12
13TEST(future, future_create_by_default_not_valid) {
14 Future<int> future;
15 ASSERT_FALSE(future.valid());
16 ASSERT_FALSE(future);
17 ASSERT_FALSE(future.ready());
18}
19
20TEST(future, value_set_by_promise_can_get_by_future_related) {
21 {

Callers

nothing calls this directly

Calls 15

get_futureMethod · 0.80
set_valueMethod · 0.80
lockMethod · 0.80
unlockMethod · 0.80
wait_forMethod · 0.80
thenMethod · 0.80
emplace_backMethod · 0.80
count_downMethod · 0.80
validMethod · 0.45
readyMethod · 0.45
getMethod · 0.45
on_finishMethod · 0.45

Tested by

no test coverage detected