MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/base/base_tests/thread_safe_queue_tests.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <thread>
8
9UNIT_TEST(ThreadSafeQueue_ThreadSafeQueue)
10{
11 threads::ThreadSafeQueue<size_t> queue;
12
13 TEST(queue.Empty(), ());
14 TEST_EQUAL(queue.Size(), 0, ());
15}
16
17UNIT_TEST(ThreadSafeQueue_Push)
18{

Callers

nothing calls this directly

Calls 9

TESTFunction · 0.85
WaitAndPopMethod · 0.80
TryPopMethod · 0.80
has_valueMethod · 0.80
EmptyMethod · 0.45
SizeMethod · 0.45
PushMethod · 0.45
ShutdownAndJoinMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected