![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Tests for rbtrees. More...
#include <freeradius-devel/util/acutest.h>#include <freeradius-devel/util/acutest_helpers.h>#include <freeradius-devel/util/rand.h>#include <freeradius-devel/util/rb.h>
Include dependency graph for rb_tests.c:Go to the source code of this file.
Data Structures | |
| struct | fr_rb_tree_test_node_t |
Macros | |
| #define | MAXSIZE 128 |
Functions | |
| static int | fr_rb_qsort_cmp (void const *one, void const *two) |
| static int8_t | fr_rb_tree_test_cmp (void const *one, void const *two) |
| static bool | is_prime (uint32_t n) |
| static void | test_fr_rb_iter_delete (void) |
| static void | test_fr_rb_iter_inorder (void) |
| static void | test_fr_rb_iter_postorder (void) |
| static void | test_fr_rb_iter_preorder (void) |
Variables | |
| static uint32_t | non_primes [] |
| static uint32_t | post_output [] = {0, 4, 3, 144, 49, 4096, 25194, 8192, 256, 15} |
| static uint32_t | pre_output [] = {15, 3, 0, 4, 256, 49, 144, 8192, 4096, 25194} |
| static uint32_t | pre_post_input [] = {0, 15, 256, 49, 3, 8192, 144, 4, 4096, 25194} |
| TEST_LIST | |
Tests for rbtrees.
Definition in file rb_tests.c.
| struct fr_rb_tree_test_node_t |
Definition at line 30 of file rb_tests.c.
Collaboration diagram for fr_rb_tree_test_node_t:| Data Fields | ||
|---|---|---|
| fr_rb_node_t | node | |
| uint32_t | num | |
| #define MAXSIZE 128 |
Definition at line 28 of file rb_tests.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 168 of file rb_tests.c.
|
static |
Definition at line 91 of file rb_tests.c.
|
static |
Definition at line 90 of file rb_tests.c.
|
static |
Definition at line 89 of file rb_tests.c.
| TEST_LIST |
Definition at line 213 of file rb_tests.c.
1.9.8