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

Function TEST

be/src/kudu/util/blocking_queue-test.cc:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72TEST(BlockingQueueTest, Test1) {
73 thread inserter_thread(InsertSomeThings);
74 int32_t i;
75 ASSERT_OK(test1_queue.BlockingGet(&i));
76 ASSERT_EQ(1, i);
77 ASSERT_OK(test1_queue.BlockingGet(&i));
78 ASSERT_EQ(2, i);
79 ASSERT_OK(test1_queue.BlockingGet(&i));
80 ASSERT_EQ(3, i);
81 inserter_thread.join();
82}
83
84TEST(BlockingQueueTest, TestBlockingDrainTo) {
85 BlockingQueue<int32_t> test_queue(3);

Callers

nothing calls this directly

Calls 14

SleepForFunction · 0.85
moveFunction · 0.85
BlockingDrainToMethod · 0.80
IsTimedOutMethod · 0.80
getMethod · 0.65
BlockingGetMethod · 0.45
joinMethod · 0.45
PutMethod · 0.45
ShutdownMethod · 0.45
BlockingPutMethod · 0.45
ToStringMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected