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

Go to the source code of this file.

Data Structures

struct  item_filter
 
struct  test_item_list_t
 
struct  test_item_t
 

Functions

static bool eval_eq (void const *item, void const *uctx)
 
static void * iter_name_check (fr_dlist_head_t *list, void *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 (void)
 
static void test_dcursor_current_set_invalid (void)
 
static void test_dcursor_current_set_valid (void)
 
static void test_dcursor_free (void)
 
static void test_dcursor_free_item (void)
 
static void test_dcursor_head (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_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_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)
 Verify internal state is initialised correctly. More...
 
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 void * test_iter (fr_dlist_head_t *list, void *current, UNUSED void *uctx)
 
static void test_list_init (test_item_list_t *list)
 
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_list_t

struct test_item_list_t

Definition at line 10 of file dcursor_tests.c.

+ Collaboration diagram for test_item_list_t:
Data Fields
fr_dlist_head_t head

◆ 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 ( void const *  item,
void const *  uctx 
)
static

Definition at line 1748 of file dcursor_tests.c.

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

◆ iter_name_check()

static void* iter_name_check ( fr_dlist_head_t list,
void *  current,
void *  uctx 
)
static

Definition at line 1583 of file dcursor_tests.c.

+ Here is the call graph for this function:
+ 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 478 of file dcursor_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 589 of file dcursor_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 857 of file dcursor_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 725 of file dcursor_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 337 of file dcursor_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 354 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_copy()

static void test_dcursor_copy ( void  )
static

Definition at line 1493 of file dcursor_tests.c.

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

◆ test_dcursor_current_set_invalid()

static void test_dcursor_current_set_invalid ( void  )
static

Definition at line 314 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_current_set_valid()

static void test_dcursor_current_set_valid ( void  )
static

Definition at line 290 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_free()

static void test_dcursor_free ( void  )
static

Definition at line 1516 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_free_item()

static void test_dcursor_free_item ( void  )
static

Definition at line 1545 of file dcursor_tests.c.

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

◆ test_dcursor_head()

static void test_dcursor_head ( void  )
static

Definition at line 136 of file dcursor_tests.c.

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

◆ test_dcursor_head_after_next()

static void test_dcursor_head_after_next ( void  )
static

Definition at line 207 of file dcursor_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 247 of file dcursor_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_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_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 505 of file dcursor_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 618 of file dcursor_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 890 of file dcursor_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 757 of file dcursor_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 394 of file dcursor_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 411 of file dcursor_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 182 of file dcursor_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 1467 of file dcursor_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 1252 of file dcursor_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 1375 of file dcursor_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 1190 of file dcursor_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 1310 of file dcursor_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 1123 of file dcursor_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 1438 of file dcursor_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 451 of file dcursor_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 557 of file dcursor_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 824 of file dcursor_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 690 of file dcursor_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 377 of file dcursor_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 970 of file dcursor_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 991 of file dcursor_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 1094 of file dcursor_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 1053 of file dcursor_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 1021 of file dcursor_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 959 of file dcursor_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 532 of file dcursor_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 657 of file dcursor_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 926 of file dcursor_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 792 of file dcursor_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 434 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_dcursor_tail()

static void test_dcursor_tail ( void  )
static

Definition at line 227 of file dcursor_tests.c.

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

◆ test_dcursor_wrap_after_tail()

static void test_dcursor_wrap_after_tail ( void  )
static

Definition at line 267 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_filter_current()

static void test_filter_current ( void  )
static

Definition at line 1784 of file dcursor_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 1756 of file dcursor_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 1815 of file dcursor_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_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_tests.c.

+ Here is the call graph for this function:

◆ test_init_null_item()

static void test_init_null_item ( void  )
static

Verify internal state is initialised correctly.

Definition at line 28 of file dcursor_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 1595 of file dcursor_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 1641 of file dcursor_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 1692 of file dcursor_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 1667 of file dcursor_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 1722 of file dcursor_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 1615 of file dcursor_tests.c.

+ Here is the call graph for this function:

◆ test_iter()

static void* test_iter ( fr_dlist_head_t list,
void *  current,
UNUSED void *  uctx 
)
static

Definition at line 14 of file dcursor_tests.c.

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

◆ test_list_init()

static void test_list_init ( test_item_list_t list)
static

Definition at line 20 of file dcursor_tests.c.

◆ test_next()

static void test_next ( void  )
static

Definition at line 77 of file dcursor_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_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ TEST_LIST

TEST_LIST

Definition at line 1840 of file dcursor_tests.c.