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

Function TEST

be/src/util/blocking-queue-test.cc:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39TEST(BlockingQueueTest, TestBasic) {
40 int32_t i;
41 BlockingQueue<int32_t> test_queue(5);
42 ASSERT_TRUE(test_queue.BlockingPut(1));
43 ASSERT_TRUE(test_queue.BlockingPut(2));
44 ASSERT_TRUE(test_queue.BlockingPut(3));
45 ASSERT_TRUE(test_queue.BlockingGet(&i));
46 ASSERT_EQ(1, i);
47 ASSERT_TRUE(test_queue.BlockingGet(&i));
48 ASSERT_EQ(2, i);
49 ASSERT_TRUE(test_queue.BlockingGet(&i));
50 ASSERT_EQ(3, i);
51}
52
53TEST(BlockingQueueTest, TestGetFromShutdownQueue) {
54 int64_t i;

Callers

nothing calls this directly

Calls 7

BlockingPutMethod · 0.45
BlockingGetMethod · 0.45
ShutdownMethod · 0.45
SizeMethod · 0.45
joinMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected