MRPT
1.9.9
|
#include <CTraitsTest.h>
#include <mrpt/containers/circular_buffer.h>
#include <mrpt/core/common.h>
#include <mrpt/random.h>
#include <gtest/gtest.h>
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) | |
using cb_t = int |
Definition at line 19 of file circularbuffer_unittest.cpp.
TEST | ( | circular_buffer_tests | , |
EmptyPop | |||
) |
Definition at line 21 of file circularbuffer_unittest.cpp.
References mrpt::containers::circular_buffer< T >::pop().
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().
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().
TEST | ( | circular_buffer_tests | , |
RandomWriteManyAndPeek | |||
) |
Definition at line 64 of file circularbuffer_unittest.cpp.
References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), LEN, MRPT_UNUSED_PARAM, mrpt::containers::circular_buffer< T >::peek(), mrpt::containers::circular_buffer< T >::peek_many(), mrpt::containers::circular_buffer< T >::pop(), mrpt::containers::circular_buffer< T >::pop_many(), and mrpt::containers::circular_buffer< T >::push_many().
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().
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().
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 |