The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions | Variables
dcursor_typed_tests.c File Reference
#include <freeradius-devel/util/acutest.h>
#include "dcursor.c"
+ Include dependency graph for dcursor_typed_tests.c:

Go to the source code of this file.

Data Structures

struct  item_filter
 
struct  test_item_t
 

Functions

static bool eval_eq (test_item_t const *item, void const *uctx)
 
static test_item_titer_name_check (FR_DLIST_HEAD(test_list) *list, test_item_t *current, void *uctx)
 
static void test_dcursor_append_1i_start (void)
 
static void test_dcursor_append_2i_start (void)
 
static void test_dcursor_append_3i_end (void)
 
static void test_dcursor_append_3i_mid (void)
 
static void test_dcursor_append_empty (void)
 
static void test_dcursor_append_empty_3 (void)
 
static void test_dcursor_copy_test (void)
 
static void test_dcursor_free_by_item (void)
 
static void test_dcursor_free_by_list (void)
 
static void test_dcursor_head_after_next (void)
 
static void test_dcursor_head_after_tail (void)
 
static void test_dcursor_head_reset (void)
 
static void test_dcursor_head_tail_null (void)
 
static void test_dcursor_insert_1i_start (void)
 
static void test_dcursor_insert_2i_start (void)
 
static void test_dcursor_insert_3i_end (void)
 
static void test_dcursor_insert_3i_mid (void)
 
static void test_dcursor_insert_into_empty (void)
 
static void test_dcursor_insert_into_empty_3 (void)
 
static void test_dcursor_iter_head_reset (void)
 
static void test_dcursor_merge_empty (void)
 
static void test_dcursor_merge_end_a (void)
 
static void test_dcursor_merge_end_b (void)
 
static void test_dcursor_merge_mid_a (void)
 
static void test_dcursor_merge_mid_b (void)
 
static void test_dcursor_merge_start_a_b (void)
 
static void test_dcursor_merge_with_empty (void)
 
static void test_dcursor_prepend_1i_start (void)
 
static void test_dcursor_prepend_2i_start (void)
 
static void test_dcursor_prepend_3i_end (void)
 
static void test_dcursor_prepend_3i_mid (void)
 
static void test_dcursor_prepend_empty (void)
 
static void test_dcursor_prepend_empty_3 (void)
 
static void test_dcursor_remove_1i (void)
 
static void test_dcursor_remove_2i (void)
 
static void test_dcursor_remove_3i_end (void)
 
static void test_dcursor_remove_3i_mid (void)
 
static void test_dcursor_remove_3i_start (void)
 
static void test_dcursor_remove_empty (void)
 
static void test_dcursor_replace_1i_start (void)
 
static void test_dcursor_replace_2i_start (void)
 
static void test_dcursor_replace_3i_end (void)
 
static void test_dcursor_replace_3i_mid (void)
 
static void test_dcursor_replace_in_empty (void)
 
static void test_dcursor_test_head (void)
 
static void test_dcursor_test_tail (void)
 
static void test_dcursor_wrap_after_tail (void)
 
static void test_filter_current (void)
 
static void test_filter_head_next (void)
 
static void test_filter_no_match (void)
 
static void test_init_1i_start (void)
 
static void test_init_2i_start (void)
 
static void test_init_null_item (void)
 
static void test_intersect_differing_lists (void)
 
static void test_intersect_iterator_a (void)
 
static void test_intersect_iterator_ab (void)
 
static void test_intersect_iterator_b (void)
 
static void test_intersect_iterator_disjoint (void)
 
static void test_intersect_no_iterators (void)
 
static test_item_ttest_iter (FR_DLIST_HEAD(test_list) *list, test_item_t *current, UNUSED void *uctx)
 
static void test_next (void)
 
static void test_next_wrap (void)
 

Variables

 TEST_LIST
 

Data Structure Documentation

◆ item_filter

struct item_filter

Definition at line 1578 of file dcursor_tests.c.

Data Fields
int pos
char val

◆ test_item_t

struct test_item_t

Definition at line 5 of file dcursor_tests.c.

+ Collaboration diagram for test_item_t:
Data Fields
fr_dlist_t entry
char const * name

Function Documentation

◆ eval_eq()

static bool eval_eq ( test_item_t const *  item,
void const *  uctx 
)
static

Definition at line 1650 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ iter_name_check()

static test_item_t* iter_name_check ( FR_DLIST_HEAD(test_list) *  list,
test_item_t current,
void *  uctx 
)
static

Definition at line 1488 of file dcursor_typed_tests.c.

+ Here is the caller graph for this function:

◆ test_dcursor_append_1i_start()

static void test_dcursor_append_1i_start ( void  )
static

Definition at line 462 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_append_2i_start()

static void test_dcursor_append_2i_start ( void  )
static

Definition at line 573 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_append_3i_end()

static void test_dcursor_append_3i_end ( void  )
static

Definition at line 829 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_append_3i_mid()

static void test_dcursor_append_3i_mid ( void  )
static

Definition at line 697 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_append_empty()

static void test_dcursor_append_empty ( void  )
static

Definition at line 298 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_append_empty_3()

static void test_dcursor_append_empty_3 ( void  )
static

Definition at line 314 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_copy_test()

static void test_dcursor_copy_test ( void  )
static

Definition at line 1403 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_free_by_item()

static void test_dcursor_free_by_item ( void  )
static

Definition at line 1451 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_free_by_list()

static void test_dcursor_free_by_list ( void  )
static

Definition at line 1426 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_head_after_next()

static void test_dcursor_head_after_next ( void  )
static

Definition at line 213 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_head_after_tail()

static void test_dcursor_head_after_tail ( void  )
static

Definition at line 255 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_head_reset()

static void test_dcursor_head_reset ( void  )
static

Definition at line 155 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_head_tail_null()

static void test_dcursor_head_tail_null ( void  )
static

Definition at line 123 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_insert_1i_start()

static void test_dcursor_insert_1i_start ( void  )
static

Definition at line 489 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_insert_2i_start()

static void test_dcursor_insert_2i_start ( void  )
static

Definition at line 603 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_insert_3i_end()

static void test_dcursor_insert_3i_end ( void  )
static

Definition at line 862 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_insert_3i_mid()

static void test_dcursor_insert_3i_mid ( void  )
static

Definition at line 729 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_insert_into_empty()

static void test_dcursor_insert_into_empty ( void  )
static

Definition at line 377 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_insert_into_empty_3()

static void test_dcursor_insert_into_empty_3 ( void  )
static

Definition at line 394 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_iter_head_reset()

static void test_dcursor_iter_head_reset ( void  )
static

Definition at line 185 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_empty()

static void test_dcursor_merge_empty ( void  )
static

Definition at line 1378 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_end_a()

static void test_dcursor_merge_end_a ( void  )
static

Definition at line 1201 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_end_b()

static void test_dcursor_merge_end_b ( void  )
static

Definition at line 1301 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_mid_a()

static void test_dcursor_merge_mid_a ( void  )
static

Definition at line 1146 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_mid_b()

static void test_dcursor_merge_mid_b ( void  )
static

Definition at line 1249 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_start_a_b()

static void test_dcursor_merge_start_a_b ( void  )
static

Definition at line 1092 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_merge_with_empty()

static void test_dcursor_merge_with_empty ( void  )
static

Definition at line 1350 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_prepend_1i_start()

static void test_dcursor_prepend_1i_start ( void  )
static

Definition at line 434 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_prepend_2i_start()

static void test_dcursor_prepend_2i_start ( void  )
static

Definition at line 541 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_prepend_3i_end()

static void test_dcursor_prepend_3i_end ( void  )
static

Definition at line 796 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_prepend_3i_mid()

static void test_dcursor_prepend_3i_mid ( void  )
static

Definition at line 662 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_prepend_empty()

static void test_dcursor_prepend_empty ( void  )
static

Definition at line 337 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_prepend_empty_3()

static void test_dcursor_prepend_empty_3 ( void  )
static

Definition at line 354 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_remove_1i()

static void test_dcursor_remove_1i ( void  )
static

Definition at line 940 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_remove_2i()

static void test_dcursor_remove_2i ( void  )
static

Definition at line 961 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_remove_3i_end()

static void test_dcursor_remove_3i_end ( void  )
static

Definition at line 1060 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_remove_3i_mid()

static void test_dcursor_remove_3i_mid ( void  )
static

Definition at line 1025 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_remove_3i_start()

static void test_dcursor_remove_3i_start ( void  )
static

Definition at line 992 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_remove_empty()

static void test_dcursor_remove_empty ( void  )
static

Definition at line 928 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_replace_1i_start()

static void test_dcursor_replace_1i_start ( void  )
static

Definition at line 516 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_replace_2i_start()

static void test_dcursor_replace_2i_start ( void  )
static

Definition at line 635 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_replace_3i_end()

static void test_dcursor_replace_3i_end ( void  )
static

Definition at line 895 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_replace_3i_mid()

static void test_dcursor_replace_3i_mid ( void  )
static

Definition at line 764 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_replace_in_empty()

static void test_dcursor_replace_in_empty ( void  )
static

Definition at line 417 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_test_head()

static void test_dcursor_test_head ( void  )
static

Definition at line 136 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_test_tail()

static void test_dcursor_test_tail ( void  )
static

Definition at line 233 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_wrap_after_tail()

static void test_dcursor_wrap_after_tail ( void  )
static

Definition at line 275 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_filter_current()

static void test_filter_current ( void  )
static

Definition at line 1684 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_filter_head_next()

static void test_filter_head_next ( void  )
static

Definition at line 1656 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_filter_no_match()

static void test_filter_no_match ( void  )
static

Definition at line 1715 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_init_1i_start()

static void test_init_1i_start ( void  )
static

Definition at line 44 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_init_2i_start()

static void test_init_2i_start ( void  )
static

Definition at line 60 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_init_null_item()

static void test_init_null_item ( void  )
static

Definition at line 28 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_intersect_differing_lists()

static void test_intersect_differing_lists ( void  )
static

Definition at line 1499 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_intersect_iterator_a()

static void test_intersect_iterator_a ( void  )
static

Definition at line 1543 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_intersect_iterator_ab()

static void test_intersect_iterator_ab ( void  )
static

Definition at line 1594 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_intersect_iterator_b()

static void test_intersect_iterator_b ( void  )
static

Definition at line 1569 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_intersect_iterator_disjoint()

static void test_intersect_iterator_disjoint ( void  )
static

Definition at line 1624 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_intersect_no_iterators()

static void test_intersect_no_iterators ( void  )
static

Definition at line 1518 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_iter()

static test_item_t* test_iter ( FR_DLIST_HEAD(test_list) *  list,
test_item_t current,
UNUSED void *  uctx 
)
static

Definition at line 23 of file dcursor_typed_tests.c.

+ Here is the caller graph for this function:

◆ test_next()

static void test_next ( void  )
static

Definition at line 77 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

◆ test_next_wrap()

static void test_next_wrap ( void  )
static

Definition at line 98 of file dcursor_typed_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ TEST_LIST

TEST_LIST

Definition at line 1740 of file dcursor_typed_tests.c.