MCPcopy Create free account
hub / github.com/3rdparty/libprocess / TEST

Function TEST

src/tests/after_tests.cpp:32–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32TEST(AfterTest, After)
33{
34 AWAIT_READY(after(Milliseconds(1)));
35
36 Clock::pause();
37
38 Future<Nothing> future = after(Days(1));
39
40 EXPECT_TRUE(future.isPending());
41
42 Clock::advance(Days(1));
43
44 AWAIT_READY(future);
45
46 future = after(Days(1));
47
48 EXPECT_TRUE(future.isPending());
49
50 future.discard();
51
52 AWAIT_DISCARDED(future);
53
54 Clock::resume();
55}
56
57
58TEST(AfterTest, Loop)

Callers

nothing calls this directly

Calls 8

loopFunction · 0.85
isPendingMethod · 0.80
futureMethod · 0.80
afterFunction · 0.70
ContinueClass · 0.50
BreakFunction · 0.50
discardMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected