FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test_suite.cpp File Reference

Data Structures

struct  test::out_fct_wrap_type
 

Namespaces

 test
 

Macros

#define CATCH_CONFIG_MAIN
 

Typedefs

typedef void(* test::out_fct_type )(char character, void *buffer, size_t idx, size_t maxlen)
 

Functions

void test::__io_lock ()
 
void test::__io_unlock ()
 
void test::_putchar (char character)
 
int test::printf_ (const char *format,...)
 
int test::sprintf_ (char *buffer, const char *format,...)
 
int test::snprintf_ (char *buffer, size_t count, const char *format,...)
 
int test::vsnprintf_ (char *buffer, size_t count, const char *format, va_list va)
 
int test::vprintf_ (const char *format, va_list va)
 
int test::fctprintf (void(*out)(char character, void *arg), void *arg, const char *format,...)
 
static void test::_out_buffer (char character, void *buffer, size_t idx, size_t maxlen)
 
static void test::_out_null (char character, void *buffer, size_t idx, size_t maxlen)
 
static void test::_out_char (char character, void *buffer, size_t idx, size_t maxlen)
 
static void test::_out_fct (char character, void *buffer, size_t idx, size_t maxlen)
 
static unsigned int test::_strnlen_s (const char *str, size_t maxsize)
 
static bool test::_is_digit (char ch)
 
static unsigned int test::_atoi (const char **str)
 
static size_t test::_out_rev (out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, size_t len, unsigned int width, unsigned int flags)
 
static size_t test::_ntoa_format (out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, size_t len, bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t test::_ntoa_long (out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long value, bool negative, unsigned long base, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t test::_ntoa_long_long (out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long long value, bool negative, unsigned long long base, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t test::_etoa (out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, unsigned int width, unsigned int flags)
 
static size_t test::_ftoa (out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, unsigned int width, unsigned int flags)
 
static int test::_vsnprintf (out_fct_type out, char *buffer, const size_t maxlen, const char *format, va_list va)
 
void _out_fct (char character, void *arg)
 
 TEST_CASE ("printf","[]")
 
 TEST_CASE ("fctprintf","[]")
 
 TEST_CASE ("snprintf","[]")
 
static void vprintf_builder_1 (char *buffer,...)
 
static void vsnprintf_builder_1 (char *buffer,...)
 
static void vsnprintf_builder_3 (char *buffer,...)
 
 TEST_CASE ("vprintf","[]")
 
 TEST_CASE ("vsnprintf","[]")
 
 TEST_CASE ("space flag","[]")
 
 TEST_CASE ("+ flag","[]")
 
 TEST_CASE ("0 flag","[]")
 
 TEST_CASE ("- flag","[]")
 
 TEST_CASE ("# flag","[]")
 
 TEST_CASE ("specifier","[]")
 
 TEST_CASE ("width","[]")
 
 TEST_CASE ("width 20","[]")
 
 TEST_CASE ("width *20","[]")
 
 TEST_CASE ("width -20","[]")
 
 TEST_CASE ("width 0-20","[]")
 
 TEST_CASE ("padding 20","[]")
 
 TEST_CASE ("padding .20","[]")
 
 TEST_CASE ("padding #020","[]")
 
 TEST_CASE ("padding #20","[]")
 
 TEST_CASE ("padding 20.5","[]")
 
 TEST_CASE ("padding neg numbers","[]")
 
 TEST_CASE ("float padding neg numbers","[]")
 
 TEST_CASE ("length","[]")
 
 TEST_CASE ("float","[]")
 
 TEST_CASE ("types","[]")
 
 TEST_CASE ("pointer","[]")
 
 TEST_CASE ("unknown flag","[]")
 
 TEST_CASE ("string length","[]")
 
 TEST_CASE ("buffer length","[]")
 
 TEST_CASE ("ret value","[]")
 
 TEST_CASE ("misc","[]")
 

Variables

static char printf_buffer [100]
 
static size_t printf_idx
 

Macro Definition Documentation

#define CATCH_CONFIG_MAIN

Function Documentation

void _out_fct ( char  character,
void *  arg 
)

References printf_buffer, and printf_idx.

Referenced by TEST_CASE().

TEST_CASE ( "printf"  ,
""  [] 
)

References memset(), printf_buffer, and printf_idx.

TEST_CASE ( "fctprintf"  ,
""  [] 
)
TEST_CASE ( "snprintf"  ,
""  [] 
)

References REQUIRE, snprintf, and strcmp().

TEST_CASE ( "vprintf"  ,
""  [] 
)
TEST_CASE ( "vsnprintf"  ,
""  [] 
)
TEST_CASE ( "space flag"  ,
""  [] 
)
TEST_CASE ( "+ flag"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "0 flag"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "- flag"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "# flag"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "specifier"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "width"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "width 20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "width *20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "width -20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "width 0-20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "padding 20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "padding .20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "padding #020"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "padding #20"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "padding 20.5"  ,
""  [] 
)
TEST_CASE ( "padding neg numbers"  ,
""  [] 
)
TEST_CASE ( "float padding neg numbers"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "length"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "float"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "types"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "pointer"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "unknown flag"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "string length"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

TEST_CASE ( "buffer length"  ,
""  [] 
)

References REQUIRE, snprintf, and strcmp().

TEST_CASE ( "ret value"  ,
""  [] 
)

References REQUIRE, snprintf, strcmp(), and strlen().

TEST_CASE ( "misc"  ,
""  [] 
)

References REQUIRE, sprintf, and strcmp().

static void vprintf_builder_1 ( char *  buffer,
  ... 
)
static

References vprintf.

static void vsnprintf_builder_1 ( char *  buffer,
  ... 
)
static
static void vsnprintf_builder_3 ( char *  buffer,
  ... 
)
static

Variable Documentation

char printf_buffer[100]
static

Referenced by _out_fct(), test::_putchar(), and TEST_CASE().

size_t printf_idx
static

Referenced by _out_fct(), test::_putchar(), and TEST_CASE().