MCPcopy Create free account
hub / github.com/baidu/babylon / TEST

Function TEST

test/concurrent/test_bounded_queue.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using ::babylon::ConcurrentBoundedQueue;
10
11TEST(concurrent_bounded_queue, default_constructed_with_capacity_one) {
12 ConcurrentBoundedQueue<::std::string> queue;
13 ASSERT_EQ(1, queue.capacity());
14}
15
16TEST(concurrent_bounded_queue, move_constructable) {
17 ConcurrentBoundedQueue<::std::string> queue(1024);

Callers

nothing calls this directly

Calls 15

asyncFunction · 0.85
wait_forMethod · 0.80
push_nMethod · 0.80
assignMethod · 0.80
pop_nMethod · 0.80
emplace_backMethod · 0.80
loadMethod · 0.80
capacityMethod · 0.45
reserve_and_clearMethod · 0.45
pushMethod · 0.45
sizeMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected