#include <mrpt/utils/circular_buffer.h>
#include <mrpt/random.h>
#include <mrpt/utils/CTraitsTest.h>
#include <gtest/gtest.h>
Go to the source code of this file.
Typedefs | |
typedef int | cb_t |
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) | |
typedef int cb_t |
Definition at line 18 of file circularbuffer_unittest.cpp.
TEST | ( | circular_buffer_tests | , |
EmptyPop | |||
) |
Definition at line 20 of file circularbuffer_unittest.cpp.
References mrpt::utils::circular_buffer< T >::pop().
TEST | ( | circular_buffer_tests | , |
EmptyPopAfterPushes | |||
) |
Definition at line 34 of file circularbuffer_unittest.cpp.
References LEN, mrpt::utils::circular_buffer< T >::pop(), and mrpt::utils::circular_buffer< T >::push().
TEST | ( | circular_buffer_tests | , |
RandomWriteAndPeek | |||
) |
Definition at line 56 of file circularbuffer_unittest.cpp.
References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), LEN, mrpt::utils::circular_buffer< T >::peek(), mrpt::utils::circular_buffer< T >::pop(), and mrpt::utils::circular_buffer< T >::push().
TEST | ( | circular_buffer_tests | , |
RandomWriteManyAndPeek | |||
) |
Definition at line 79 of file circularbuffer_unittest.cpp.
References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), LEN, MRPT_UNUSED_PARAM, mrpt::utils::circular_buffer< T >::peek(), mrpt::utils::circular_buffer< T >::peek_many(), mrpt::utils::circular_buffer< T >::pop_many(), and mrpt::utils::circular_buffer< T >::push_many().
TEST | ( | circular_buffer_tests | , |
RandomWriteAndPeekOverrun | |||
) |
Definition at line 104 of file circularbuffer_unittest.cpp.
References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), LEN, mrpt::utils::circular_buffer< T >::peek(), mrpt::utils::circular_buffer< T >::pop(), and mrpt::utils::circular_buffer< T >::push().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |