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

Function TEST

3rdparty/libprocess/src/tests/queue_tests.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using std::string;
24
25TEST(QueueTest, Block)
26{
27 Queue<string> q;
28
29 // A 'get' with an empty queue should block.
30 Future<string> get = q.get();
31
32 EXPECT_TRUE(get.isPending());
33
34 // After putting something the 'get' should be completed.
35 q.put("hello world");
36
37 EXPECT_TRUE(get.isReady());
38 EXPECT_EQ("hello world", get.get());
39}
40
41
42TEST(QueueTest, Noblock)

Callers

nothing calls this directly

Calls 6

isReadyMethod · 0.80
isDiscardedMethod · 0.80
getMethod · 0.45
isPendingMethod · 0.45
putMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected