MRPT  1.9.9
circularbuffer_unittest.cpp File Reference
#include <CTraitsTest.h>
#include <mrpt/containers/circular_buffer.h>
#include <mrpt/core/common.h>
#include <mrpt/random.h>
#include <gtest/gtest.h>
Include dependency graph for circularbuffer_unittest.cpp:

Go to the source code of this file.

Typedefs

using cb_t = int
 

Functions

 TEST (circular_buffer_tests, EmptyPop)
 
 TEST (circular_buffer_tests, EmptyPopAfterPushes)
 
 TEST (circular_buffer_tests, RandomWriteAndPeek)
 
 TEST (circular_buffer_tests, RandomWriteManyAndPeek)
 
 TEST (circular_buffer_tests, RandomWriteAndPeekOverrun)
 
 TEST (circular_buffer_tests, Size)
 

Typedef Documentation

◆ cb_t

using cb_t = int

Definition at line 19 of file circularbuffer_unittest.cpp.

Function Documentation

◆ TEST() [1/6]

TEST ( circular_buffer_tests  ,
EmptyPop   
)

Definition at line 21 of file circularbuffer_unittest.cpp.

References mrpt::containers::circular_buffer< T >::pop().

Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( circular_buffer_tests  ,
EmptyPopAfterPushes   
)

Definition at line 27 of file circularbuffer_unittest.cpp.

References LEN, mrpt::containers::circular_buffer< T >::pop(), and mrpt::containers::circular_buffer< T >::push().

Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( circular_buffer_tests  ,
RandomWriteAndPeek   
)

Definition at line 41 of file circularbuffer_unittest.cpp.

References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), LEN, mrpt::containers::circular_buffer< T >::peek(), mrpt::containers::circular_buffer< T >::pop(), and mrpt::containers::circular_buffer< T >::push().

Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( circular_buffer_tests  ,
RandomWriteManyAndPeek   
)

◆ TEST() [5/6]

TEST ( circular_buffer_tests  ,
RandomWriteAndPeekOverrun   
)

Definition at line 98 of file circularbuffer_unittest.cpp.

References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), LEN, mrpt::containers::circular_buffer< T >::peek(), mrpt::containers::circular_buffer< T >::pop(), and mrpt::containers::circular_buffer< T >::push().

Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( circular_buffer_tests  ,
Size   
)

Definition at line 125 of file circularbuffer_unittest.cpp.

References mrpt::containers::circular_buffer< T >::capacity(), mrpt::containers::circular_buffer< T >::pop(), mrpt::containers::circular_buffer< T >::push(), and mrpt::containers::circular_buffer< T >::size().

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019