MRPT  2.0.4
Typedefs | Functions
circularbuffer_unittest.cpp File Reference
#include <CTraitsTest.h>
#include <mrpt/containers/circular_buffer.h>
#include <mrpt/core/common.h>
#include <mrpt/random.h>
#include <array>
#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)
 
template<typename T >
void impl_WritePeekCheck ()
 
 TEST (circular_buffer_tests, WritePeekCheck_uint8_t)
 
 TEST (circular_buffer_tests, WritePeekCheck_uint16_t)
 
 TEST (circular_buffer_tests, WritePeekCheck_uint32_t)
 
 TEST (circular_buffer_tests, WritePeekCheck_uint64_t)
 

Typedef Documentation

◆ cb_t

using cb_t = int

Definition at line 20 of file circularbuffer_unittest.cpp.

Function Documentation

◆ impl_WritePeekCheck()

template<typename T >
void impl_WritePeekCheck ( )

Definition at line 135 of file circularbuffer_unittest.cpp.

References EXPECT_EQ(), mrpt::containers::circular_buffer< T >::peek_many(), and mrpt::containers::circular_buffer< T >::push().

Here is the call graph for this function:

◆ TEST() [1/10]

TEST ( circular_buffer_tests  ,
EmptyPop   
)

Definition at line 22 of file circularbuffer_unittest.cpp.

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

Here is the call graph for this function:

◆ TEST() [2/10]

TEST ( circular_buffer_tests  ,
EmptyPopAfterPushes   
)

Definition at line 28 of file circularbuffer_unittest.cpp.

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

Here is the call graph for this function:

◆ TEST() [3/10]

TEST ( circular_buffer_tests  ,
RandomWriteAndPeek   
)

Definition at line 42 of file circularbuffer_unittest.cpp.

References mrpt::random::CRandomGenerator::drawUniform32bit(), EXPECT_EQ(), mrpt::random::getRandomGenerator(), 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/10]

TEST ( circular_buffer_tests  ,
RandomWriteManyAndPeek   
)

◆ TEST() [5/10]

TEST ( circular_buffer_tests  ,
RandomWriteAndPeekOverrun   
)

Definition at line 99 of file circularbuffer_unittest.cpp.

References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), 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/10]

TEST ( circular_buffer_tests  ,
Size   
)

Definition at line 118 of file circularbuffer_unittest.cpp.

References mrpt::containers::circular_buffer< T >::capacity(), EXPECT_EQ(), 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:

◆ TEST() [7/10]

TEST ( circular_buffer_tests  ,
WritePeekCheck_uint8_t   
)

Definition at line 149 of file circularbuffer_unittest.cpp.

◆ TEST() [8/10]

TEST ( circular_buffer_tests  ,
WritePeekCheck_uint16_t   
)

Definition at line 153 of file circularbuffer_unittest.cpp.

◆ TEST() [9/10]

TEST ( circular_buffer_tests  ,
WritePeekCheck_uint32_t   
)

Definition at line 157 of file circularbuffer_unittest.cpp.

◆ TEST() [10/10]

TEST ( circular_buffer_tests  ,
WritePeekCheck_uint64_t   
)

Definition at line 161 of file circularbuffer_unittest.cpp.




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020