Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Classes | Macros | Typedefs | Functions
test_lfringbuffer01.cpp File Reference
#include <iostream>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <memory>
#include <catch2/catch_amalgamated.hpp>
#include <jau/test/catch2_ext.hpp>
#include <jau/ringbuffer.hpp>
Include dependency graph for test_lfringbuffer01.cpp:

Go to the source code of this file.

Classes

class  TestRingbuffer01
 

Macros

#define CATCH_CONFIG_MAIN
 

Typedefs

typedef uint8_t IntegralType
 
typedef uint8_t TrivialType
 
typedef ringbuffer< TrivialType, TrivialType, jau::nsize_tTrivialTypeRingbuffer
 

Functions

constexpr const TrivialType TrivialTypeNullElem (0xff)
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test00_PrintInfo, "Test TestRingbuffer 01- 00")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test01_FullRead, "Test TestRingbuffer 01- 01")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test02_EmptyWrite, "Test TestRingbuffer 01- 02")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test03_EmptyWriteRange, "Test TestRingbuffer 01- 03")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test04_FullReadReset, "Test TestRingbuffer 01- 04")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test05_EmptyWriteClear, "Test TestRingbuffer 01- 05")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test06_ReadResetMid01, "Test TestRingbuffer 01- 06")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test07_ReadResetMid02, "Test TestRingbuffer 01- 07")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test20_GrowFull01_Begin, "Test TestRingbuffer 01- 20")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test21_GrowFull02_Begin1, "Test TestRingbuffer 01- 21")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test22_GrowFull03_Begin2, "Test TestRingbuffer 01- 22")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test23_GrowFull04_Begin3, "Test TestRingbuffer 01- 23")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test24_GrowFull05_End, "Test TestRingbuffer 01- 24")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test25_GrowFull11_End1, "Test TestRingbuffer 01- 25")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test26_GrowFull12_End2, "Test TestRingbuffer 01- 26")
 
 METHOD_AS_TEST_CASE (TestRingbuffer01::test27_GrowFull13_End3, "Test TestRingbuffer 01- 27")
 

Macro Definition Documentation

◆ CATCH_CONFIG_MAIN

#define CATCH_CONFIG_MAIN

Definition at line 31 of file test_lfringbuffer01.cpp.

Typedef Documentation

◆ IntegralType

typedef uint8_t IntegralType
Examples
test_lfringbuffer01.cpp.

Definition at line 38 of file test_lfringbuffer01.cpp.

◆ TrivialType

typedef uint8_t TrivialType
Examples
test_lfringbuffer01.cpp.

Definition at line 39 of file test_lfringbuffer01.cpp.

◆ TrivialTypeRingbuffer

Examples
test_lfringbuffer01.cpp.

Definition at line 41 of file test_lfringbuffer01.cpp.

Function Documentation

◆ METHOD_AS_TEST_CASE() [1/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test00_PrintInfo  ,
"Test TestRingbuffer 01- 00"   
)

◆ METHOD_AS_TEST_CASE() [2/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test01_FullRead  ,
"Test TestRingbuffer 01- 01"   
)

◆ METHOD_AS_TEST_CASE() [3/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test02_EmptyWrite  ,
"Test TestRingbuffer 01- 02"   
)

◆ METHOD_AS_TEST_CASE() [4/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test03_EmptyWriteRange  ,
"Test TestRingbuffer 01- 03"   
)

◆ METHOD_AS_TEST_CASE() [5/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test04_FullReadReset  ,
"Test TestRingbuffer 01- 04"   
)

◆ METHOD_AS_TEST_CASE() [6/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test05_EmptyWriteClear  ,
"Test TestRingbuffer 01- 05"   
)

◆ METHOD_AS_TEST_CASE() [7/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test06_ReadResetMid01  ,
"Test TestRingbuffer 01- 06"   
)

◆ METHOD_AS_TEST_CASE() [8/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test07_ReadResetMid02  ,
"Test TestRingbuffer 01- 07"   
)

◆ METHOD_AS_TEST_CASE() [9/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test20_GrowFull01_Begin  ,
"Test TestRingbuffer 01- 20"   
)

◆ METHOD_AS_TEST_CASE() [10/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test21_GrowFull02_Begin1  ,
"Test TestRingbuffer 01- 21"   
)

◆ METHOD_AS_TEST_CASE() [11/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test22_GrowFull03_Begin2  ,
"Test TestRingbuffer 01- 22"   
)

◆ METHOD_AS_TEST_CASE() [12/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test23_GrowFull04_Begin3  ,
"Test TestRingbuffer 01- 23"   
)

◆ METHOD_AS_TEST_CASE() [13/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test24_GrowFull05_End  ,
"Test TestRingbuffer 01- 24"   
)

◆ METHOD_AS_TEST_CASE() [14/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test25_GrowFull11_End1  ,
"Test TestRingbuffer 01- 25"   
)

◆ METHOD_AS_TEST_CASE() [15/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test26_GrowFull12_End2  ,
"Test TestRingbuffer 01- 26"   
)

◆ METHOD_AS_TEST_CASE() [16/16]

METHOD_AS_TEST_CASE ( TestRingbuffer01::test27_GrowFull13_End3  ,
"Test TestRingbuffer 01- 27"   
)

◆ TrivialTypeNullElem()

constexpr const TrivialType TrivialTypeNullElem ( 0xff  )
constexpr
Examples
test_lfringbuffer01.cpp.
Here is the caller graph for this function: