src/base/circular_queue.test.cc
/** Testing that once instantiated with a fixed size,
 * the queue has Head = Tail + 1 */
Testing that once instantiated with a fixed size,
the queue has Head = Tail + 1
Testing that once instantiated with a fixed size the queue has Head = Tail + 1
TEST(CircularQueueTest, HeadTailEmpty)
{
    const auto cq_size = 8;
    CircularQueue<uint32_t> cq(cq_size);
    ASSERT_EQ(cq.head(), (cq.tail() + 1) % cq_size);
}
TEST ( CircularQueueTest , HeadTailEmpty ) { const auto cq_size = 8 ; CircularQueue < uint32_t > cq ( cq_size ) ; ASSERT_EQ ( cq . head ( ) , ( cq . tail ( ) + 1 ) % cq_size ) ; }
Testing that once instantiated with a fixed size,
 the queue has Head = Tail + 1
Testing that once instantiated with a fixed size the queue has Head = Tail + 1