Tests for the hash table.
More...
#include "acutest.h"
#include "acutest_helpers.h"
#include <freeradius-devel/util/hash.h>
#include <freeradius-devel/util/rand.h>
Go to the source code of this file.
Tests for the hash table.
- Copyright
- 2026 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file hash_tests.c.
◆ hash_test_node_t
◆ HASH_TEST_SIZE
◆ hash_test_cmp()
| static int8_t hash_test_cmp |
( |
void const * |
one, |
|
|
void const * |
two |
|
) |
| |
|
static |
◆ hash_test_hash()
| static uint32_t hash_test_hash |
( |
void const * |
data | ) |
|
|
static |
◆ test_hash64_functions()
| static void test_hash64_functions |
( |
void |
| ) |
|
|
static |
◆ test_hash_functions()
| static void test_hash_functions |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_basic()
| static void test_hash_table_basic |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_delete()
| static void test_hash_table_delete |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_duplicate()
| static void test_hash_table_duplicate |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_flatten()
| static void test_hash_table_flatten |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_iter()
| static void test_hash_table_iter |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_many()
| static void test_hash_table_many |
( |
void |
| ) |
|
|
static |
◆ test_hash_table_replace()
| static void test_hash_table_replace |
( |
void |
| ) |
|
|
static |
◆ TEST_LIST
Initial value:= {
}
static void test_hash_table_iter(void)
static void test_hash_functions(void)
static void test_hash_table_replace(void)
static void test_hash_table_duplicate(void)
static void test_hash_table_basic(void)
static void test_hash_table_delete(void)
static void test_hash_table_many(void)
static void test_hash64_functions(void)
static void test_hash_table_flatten(void)
Definition at line 381 of file hash_tests.c.