Tests for the trie data structure.
More...
#include "acutest.h"
#include "acutest_helpers.h"
#include <freeradius-devel/util/trie.h>
#include <freeradius-devel/util/inet.h>
Go to the source code of this file.
Tests for the trie data structure.
- Copyright
- 2026 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file trie_tests.c.
◆ walk_ctx_t
◆ test_trie_alloc()
| static void test_trie_alloc |
( |
void |
| ) |
|
|
static |
◆ test_trie_bit_prefix()
| static void test_trie_bit_prefix |
( |
void |
| ) |
|
|
static |
◆ test_trie_insert_duplicate()
| static void test_trie_insert_duplicate |
( |
void |
| ) |
|
|
static |
◆ test_trie_insert_lookup()
| static void test_trie_insert_lookup |
( |
void |
| ) |
|
|
static |
◆ test_trie_longest_prefix()
| static void test_trie_longest_prefix |
( |
void |
| ) |
|
|
static |
◆ test_trie_many()
| static void test_trie_many |
( |
void |
| ) |
|
|
static |
◆ test_trie_remove()
| static void test_trie_remove |
( |
void |
| ) |
|
|
static |
◆ test_trie_walk()
| static void test_trie_walk |
( |
void |
| ) |
|
|
static |
◆ walk_callback()
| static int walk_callback |
( |
uint8_t const * |
key, |
|
|
size_t |
keylen, |
|
|
UNUSED void * |
data, |
|
|
void * |
uctx |
|
) |
| |
|
static |
◆ TEST_LIST
Initial value:= {
}
static void test_trie_many(void)
static void test_trie_insert_duplicate(void)
static void test_trie_longest_prefix(void)
static void test_trie_alloc(void)
static void test_trie_bit_prefix(void)
static void test_trie_insert_lookup(void)
static void test_trie_remove(void)
static void test_trie_walk(void)
Definition at line 353 of file trie_tests.c.