MCPcopy Create free account
hub / github.com/apache/mesos / TEST

Function TEST

3rdparty/libprocess/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 12

MillisecondsClass · 0.85
DaysClass · 0.85
loopFunction · 0.85
NoneClass · 0.85
NothingClass · 0.85
afterFunction · 0.70
ContinueClass · 0.50
BreakFunction · 0.50
isPendingMethod · 0.45
discardMethod · 0.45
setMethod · 0.45
futureMethod · 0.45

Tested by

no test coverage detected