This C++ unit test validates jau::ringbuffer w/o parallel processing.
This C++ unit test validates jau::ringbuffer w/o parallel processing.
With test_lfringbuffer11.cpp, this work verifies jau::ringbuffer correctness
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <memory>
template<>
template<>
template<>
TEST_CASE(
"TestRingbuffer_A_01_a<Integral_type=uint8_t, Value_type=uint8_t, Size_type=jau::nsize_t, exp_memmove=true, exp_memcpy=true, exp_secmem=false>",
"[ringbuffer_A_01a]" ) {
true , true , false >();
}
TEST_CASE(
"TestRingbuffer_A_01_b<Integral_type=uint8_t, Value_type=uint8_t, Size_type=jau::nsize_t, exp_memmove=true, exp_memcpy=true, exp_secmem=true>",
"[ringbuffer_A_01b]" ) {
true , true , true ,
true , true , true >();
}
TEST_CASE(
"TestRingbuffer_A_01_c<Integral_type=uint8_t, Value_type=uint8_t, Size_type=jau::nsize_t, exp_memmove=false, exp_memcpy=false, exp_secmem=true>",
"[ringbuffer_A_01c]" ) {
false , false , true ,
false , false , true >();
}
uint_fast32_t nsize_t
Natural 'size_t' alternative using uint_fast32_t as its natural sized type.
__pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.
Value_type createValue(const Integral_type &v)
Integral_type getValue(const Value_type &e)
TEST_CASE("TestRingbuffer_A_01_a<Integral_type=uint8_t, Value_type=uint8_t, Size_type=jau::nsize_t, exp_memmove=true, exp_memcpy=true, exp_secmem=false>", "[ringbuffer_A_01a]")
void PerformRingbufferTests()