MOS Source Code
Loading...
Searching...
No Matches
test_hashmap.c File Reference
+ Include dependency graph for test_hashmap.c:

Go to the source code of this file.

Macros

#define HASHMAP_MAGIC   MOS_FOURCC('H', 'M', 'a', 'p')
 

Functions

static void hashmap_init_simple_macro (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_init_simple_macro (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_init_simple_macro_L, __LINE__), { __mos_test_wrapped_test_hashmap_init_simple_macro, "hashmap_init_simple_macro" })
 
static void hashmap_init_simple_macro (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void hashmap_put_single (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_put_single (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_put_single_L, __LINE__), { __mos_test_wrapped_test_hashmap_put_single, "hashmap_put_single" })
 
static void hashmap_put_single (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void hashmap_get_function (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_get_function (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_get_function_L, __LINE__), { __mos_test_wrapped_test_hashmap_get_function, "hashmap_get_function" })
 
static void hashmap_get_function (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void hashmap_put_multiple (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_put_multiple (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_put_multiple_L, __LINE__), { __mos_test_wrapped_test_hashmap_put_multiple, "hashmap_put_multiple" })
 
static void hashmap_put_multiple (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void hashmap_put_overflow (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_put_overflow (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_put_overflow_L, __LINE__), { __mos_test_wrapped_test_hashmap_put_overflow, "hashmap_put_overflow" })
 
static void hashmap_put_overflow (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void hashmap_remove_function (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_remove_function (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_remove_function_L, __LINE__), { __mos_test_wrapped_test_hashmap_remove_function, "hashmap_remove_function" })
 
static void hashmap_remove_function (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
bool test_foreach_function (uintn key, void *value, void *data)
 
bool test_foreach_stop_at_quux (uintn key, void *value, void *data)
 
static void hashmap_foreach_function (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_hashmap_foreach_function (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_hashmap_foreach_function_L, __LINE__), { __mos_test_wrapped_test_hashmap_foreach_function, "hashmap_foreach_function" })
 
static void hashmap_foreach_function (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 

Variables

static size_t test_hashmap_foreach_count = 0
 

Macro Definition Documentation

◆ HASHMAP_MAGIC

Function Documentation

◆ hashmap_init_simple_macro() [1/2]

static void hashmap_init_simple_macro ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_init_simple_macro()

static void __mos_test_wrapped_test_hashmap_init_simple_macro ( mos_test_result_t * result)
static

Definition at line 11 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [1/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_init_simple_macro_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_init_simple_macro, "hashmap_init_simple_macro" }  )

◆ hashmap_init_simple_macro() [2/2]

static void hashmap_init_simple_macro ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 11 of file test_hashmap.c.

◆ hashmap_put_single() [1/2]

static void hashmap_put_single ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_put_single()

static void __mos_test_wrapped_test_hashmap_put_single ( mos_test_result_t * result)
static

Definition at line 24 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [2/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_put_single_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_put_single, "hashmap_put_single" }  )

◆ hashmap_put_single() [2/2]

static void hashmap_put_single ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 24 of file test_hashmap.c.

◆ hashmap_get_function() [1/2]

static void hashmap_get_function ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_get_function()

static void __mos_test_wrapped_test_hashmap_get_function ( mos_test_result_t * result)
static

Definition at line 41 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [3/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_get_function_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_get_function, "hashmap_get_function" }  )

◆ hashmap_get_function() [2/2]

static void hashmap_get_function ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 41 of file test_hashmap.c.

◆ hashmap_put_multiple() [1/2]

static void hashmap_put_multiple ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_put_multiple()

static void __mos_test_wrapped_test_hashmap_put_multiple ( mos_test_result_t * result)
static

Definition at line 67 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [4/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_put_multiple_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_put_multiple, "hashmap_put_multiple" }  )

◆ hashmap_put_multiple() [2/2]

static void hashmap_put_multiple ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 67 of file test_hashmap.c.

◆ hashmap_put_overflow() [1/2]

static void hashmap_put_overflow ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_put_overflow()

static void __mos_test_wrapped_test_hashmap_put_overflow ( mos_test_result_t * result)
static

Definition at line 104 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [5/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_put_overflow_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_put_overflow, "hashmap_put_overflow" }  )

◆ hashmap_put_overflow() [2/2]

static void hashmap_put_overflow ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 104 of file test_hashmap.c.

◆ hashmap_remove_function() [1/2]

static void hashmap_remove_function ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_remove_function()

static void __mos_test_wrapped_test_hashmap_remove_function ( mos_test_result_t * result)
static

Definition at line 136 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [6/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_remove_function_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_remove_function, "hashmap_remove_function" }  )

◆ hashmap_remove_function() [2/2]

static void hashmap_remove_function ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 136 of file test_hashmap.c.

◆ test_foreach_function()

bool test_foreach_function ( uintn key,
void * value,
void * data )

Definition at line 169 of file test_hashmap.c.

Referenced by __mos_test_wrapped_test_hashmap_foreach_function().

◆ test_foreach_stop_at_quux()

bool test_foreach_stop_at_quux ( uintn key,
void * value,
void * data )

Definition at line 178 of file test_hashmap.c.

Referenced by __mos_test_wrapped_test_hashmap_foreach_function().

+ Here is the call graph for this function:

◆ hashmap_foreach_function() [1/2]

static void hashmap_foreach_function ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_hashmap_foreach_function()

static void __mos_test_wrapped_test_hashmap_foreach_function ( mos_test_result_t * result)
static

Definition at line 188 of file test_hashmap.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [7/7]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_hashmap_foreach_function_L, __LINE__) ,
{ __mos_test_wrapped_test_hashmap_foreach_function, "hashmap_foreach_function" }  )

◆ hashmap_foreach_function() [2/2]

static void hashmap_foreach_function ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 188 of file test_hashmap.c.

Variable Documentation

◆ test_hashmap_foreach_count

size_t test_hashmap_foreach_count = 0
static