|
MRPT
2.0.1
|
#include <CTraitsTest.h>#include <mrpt/containers/circular_buffer.h>#include <mrpt/core/common.h>#include <mrpt/random.h>#include <array>#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) | |
| 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) | |
| using cb_t = int |
Definition at line 20 of file circularbuffer_unittest.cpp.
| 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().
| TEST | ( | circular_buffer_tests | , |
| EmptyPop | |||
| ) |
Definition at line 22 of file circularbuffer_unittest.cpp.
References mrpt::containers::circular_buffer< T >::pop().
| 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().
| 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().
| TEST | ( | circular_buffer_tests | , |
| RandomWriteManyAndPeek | |||
| ) |
Definition at line 65 of file circularbuffer_unittest.cpp.
References mrpt::random::CRandomGenerator::drawUniform32bit(), mrpt::random::getRandomGenerator(), 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 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().
| 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().
| TEST | ( | circular_buffer_tests | , |
| WritePeekCheck_uint8_t | |||
| ) |
Definition at line 149 of file circularbuffer_unittest.cpp.
| TEST | ( | circular_buffer_tests | , |
| WritePeekCheck_uint16_t | |||
| ) |
Definition at line 153 of file circularbuffer_unittest.cpp.
| TEST | ( | circular_buffer_tests | , |
| WritePeekCheck_uint32_t | |||
| ) |
Definition at line 157 of file circularbuffer_unittest.cpp.
| 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.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |