src/base/circular_queue.test.cc
/** Testing that once instantiated with a fixed size,
 * the queue is still empty */
Testing that once instantiated with a fixed size,
the queue is still empty
Testing that once instantiated with a fixed size the queue is still empty
TEST(CircularQueueTest, Empty)
{
    const auto cq_size = 8;
    CircularQueue<uint32_t> cq(cq_size);
    ASSERT_EQ(cq.capacity(), cq_size);
    ASSERT_EQ(cq.size(), 0);
    ASSERT_TRUE(cq.empty());
}
TEST ( CircularQueueTest , Empty ) { const auto cq_size = 8 ; CircularQueue < uint32_t > cq ( cq_size ) ; ASSERT_EQ ( cq . capacity ( ) , cq_size ) ; ASSERT_EQ ( cq . size ( ) , 0 ) ; ASSERT_TRUE ( cq . empty ( ) ) ; }
Testing that once instantiated with a fixed size,
 the queue is still empty
Testing that once instantiated with a fixed size the queue is still empty