The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions | Variables
pair_nested_tests.c File Reference
#include <freeradius-devel/util/acutest.h>
#include <freeradius-devel/util/acutest_helpers.h>
#include <freeradius-devel/util/pair_test_helpers.h>
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict.h>
+ Include dependency graph for pair_nested_tests.c:

Go to the source code of this file.

Macros

#define USE_CONSTRUCTOR
 The 'TEST_INIT' macro provided by 'acutest.h' allowing to register a function to be called before call the unit tests. More...
 

Functions

static void test_fr_pair_afrom_child_num (void)
 
static void test_fr_pair_afrom_da (void)
 
static void test_fr_pair_afrom_da_nested (void)
 
static void test_fr_pair_append (void)
 
static void test_fr_pair_append_by_da_parent (void)
 
static void test_fr_pair_cmp (void)
 
static void test_fr_pair_copy (void)
 
static void test_fr_pair_dcursor_by_ancestor_init (void)
 
static void test_fr_pair_dcursor_by_da_init (void)
 
static void test_fr_pair_dcursor_value_init (void)
 
static void test_fr_pair_delete (void)
 
static void test_fr_pair_delete_by_child_num (void)
 
static void test_fr_pair_delete_by_da (void)
 
static void test_fr_pair_delete_by_da_nested (void)
 
static void test_fr_pair_find_by_child_num_idx (void)
 
static void test_fr_pair_find_by_da_idx (void)
 
static void test_fr_pair_find_by_da_nested (void)
 
static void test_fr_pair_list_cmp (void)
 
static void test_fr_pair_list_copy (void)
 
static void test_fr_pair_list_copy_by_ancestor (void)
 
static void test_fr_pair_list_copy_by_da (void)
 
static void test_fr_pair_list_sort (void)
 
static void test_fr_pair_nested_verify (void)
 
static void test_fr_pair_prepend_by_da (void)
 
static void test_fr_pair_raw_afrom_pair (void)
 
static void test_fr_pair_steal (void)
 
static void test_fr_pair_update_by_da_parent (void)
 
static void test_fr_pair_value_aprintf (void)
 
static void test_fr_pair_value_bstr_alloc (void)
 
static void test_fr_pair_value_bstr_append_buffer (void)
 
static void test_fr_pair_value_bstr_realloc (void)
 
static void test_fr_pair_value_bstrdup_buffer (void)
 
static void test_fr_pair_value_bstrdup_buffer_shallow (void)
 
static void test_fr_pair_value_bstrn_append (void)
 
static void test_fr_pair_value_bstrndup (void)
 
static void test_fr_pair_value_bstrndup_shallow (void)
 
static void test_fr_pair_value_copy (void)
 
static void test_fr_pair_value_enum (void)
 
static void test_fr_pair_value_enum_box (void)
 
static void test_fr_pair_value_from_str (void)
 
static void test_fr_pair_value_mem_alloc (void)
 
static void test_fr_pair_value_mem_append (void)
 
static void test_fr_pair_value_mem_append_buffer (void)
 
static void test_fr_pair_value_mem_realloc (void)
 
static void test_fr_pair_value_memdup (void)
 
static void test_fr_pair_value_memdup_buffer (void)
 
static void test_fr_pair_value_memdup_buffer_shallow (void)
 
static void test_fr_pair_value_memdup_shallow (void)
 
static void test_fr_pair_value_strdup (void)
 
static void test_fr_pair_value_strdup_shallow (void)
 
static void test_fr_pair_value_strtrim (void)
 
static void test_init (void)
 Global initialisation. More...
 

Variables

 TEST_LIST
 

Macro Definition Documentation

◆ USE_CONSTRUCTOR

#define USE_CONSTRUCTOR

The 'TEST_INIT' macro provided by 'acutest.h' allowing to register a function to be called before call the unit tests.

Therefore, It calls the function ALL THE TIME causing an overhead. That is why we are initializing test_init() by "__attribute__((constructor));" reducing the test execution by 50% of the time.

Definition at line 30 of file pair_nested_tests.c.

Function Documentation

◆ test_fr_pair_afrom_child_num()

static void test_fr_pair_afrom_child_num ( void  )
static

Definition at line 113 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_afrom_da()

static void test_fr_pair_afrom_da ( void  )
static

Definition at line 92 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_afrom_da_nested()

static void test_fr_pair_afrom_da_nested ( void  )
static

Definition at line 130 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_append()

static void test_fr_pair_append ( void  )
static

Definition at line 483 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_append_by_da_parent()

static void test_fr_pair_append_by_da_parent ( void  )
static

Definition at line 512 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_cmp()

static void test_fr_pair_cmp ( void  )
static

Definition at line 648 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_copy()

static void test_fr_pair_copy ( void  )
static

Definition at line 193 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_dcursor_by_ancestor_init()

static void test_fr_pair_dcursor_by_ancestor_init ( void  )
static

Definition at line 279 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_dcursor_by_da_init()

static void test_fr_pair_dcursor_by_da_init ( void  )
static

Definition at line 253 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_dcursor_value_init()

static void test_fr_pair_dcursor_value_init ( void  )
static

Definition at line 305 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_delete()

static void test_fr_pair_delete ( void  )
static

Definition at line 633 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_delete_by_child_num()

static void test_fr_pair_delete_by_child_num ( void  )
static

Definition at line 563 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_delete_by_da()

static void test_fr_pair_delete_by_da ( void  )
static

Definition at line 621 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_delete_by_da_nested()

static void test_fr_pair_delete_by_da_nested ( void  )
static

Definition at line 159 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_find_by_child_num_idx()

static void test_fr_pair_find_by_child_num_idx ( void  )
static

Definition at line 374 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_find_by_da_idx()

static void test_fr_pair_find_by_da_idx ( void  )
static

Definition at line 360 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_find_by_da_nested()

static void test_fr_pair_find_by_da_nested ( void  )
static

Definition at line 388 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_cmp()

static void test_fr_pair_list_cmp ( void  )
static

Definition at line 674 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_copy()

static void test_fr_pair_list_copy ( void  )
static

Definition at line 694 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_copy_by_ancestor()

static void test_fr_pair_list_copy_by_ancestor ( void  )
static

Definition at line 734 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_copy_by_da()

static void test_fr_pair_list_copy_by_da ( void  )
static

Definition at line 709 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_sort()

static void test_fr_pair_list_sort ( void  )
static

Definition at line 771 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_nested_verify()

static void test_fr_pair_nested_verify ( void  )
static

Definition at line 186 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_prepend_by_da()

static void test_fr_pair_prepend_by_da ( void  )
static

Definition at line 575 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_raw_afrom_pair()

static void test_fr_pair_raw_afrom_pair ( void  )
static

Definition at line 235 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_steal()

static void test_fr_pair_steal ( void  )
static

Definition at line 217 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_update_by_da_parent()

static void test_fr_pair_update_by_da_parent ( void  )
static

Definition at line 598 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_aprintf()

static void test_fr_pair_value_aprintf ( void  )
static

Definition at line 940 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstr_alloc()

static void test_fr_pair_value_bstr_alloc ( void  )
static

Definition at line 964 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstr_append_buffer()

static void test_fr_pair_value_bstr_append_buffer ( void  )
static

Definition at line 1137 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstr_realloc()

static void test_fr_pair_value_bstr_realloc ( void  )
static

Definition at line 991 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstrdup_buffer()

static void test_fr_pair_value_bstrdup_buffer ( void  )
static

Definition at line 1038 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstrdup_buffer_shallow()

static void test_fr_pair_value_bstrdup_buffer_shallow ( void  )
static

Definition at line 1084 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstrn_append()

static void test_fr_pair_value_bstrn_append ( void  )
static

Definition at line 1107 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstrndup()

static void test_fr_pair_value_bstrndup ( void  )
static

Definition at line 1021 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_bstrndup_shallow()

static void test_fr_pair_value_bstrndup_shallow ( void  )
static

Definition at line 1061 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_copy()

static void test_fr_pair_value_copy ( void  )
static

Definition at line 822 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_enum()

static void test_fr_pair_value_enum ( void  )
static

Definition at line 1372 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_enum_box()

static void test_fr_pair_value_enum_box ( void  )
static

Definition at line 1395 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_from_str()

static void test_fr_pair_value_from_str ( void  )
static

Definition at line 849 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_mem_alloc()

static void test_fr_pair_value_mem_alloc ( void  )
static

Definition at line 1170 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_mem_append()

static void test_fr_pair_value_mem_append ( void  )
static

Definition at line 1318 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_mem_append_buffer()

static void test_fr_pair_value_mem_append_buffer ( void  )
static

Definition at line 1342 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_mem_realloc()

static void test_fr_pair_value_mem_realloc ( void  )
static

Definition at line 1194 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_memdup()

static void test_fr_pair_value_memdup ( void  )
static

Definition at line 1232 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_memdup_buffer()

static void test_fr_pair_value_memdup_buffer ( void  )
static

Definition at line 1249 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_memdup_buffer_shallow()

static void test_fr_pair_value_memdup_buffer_shallow ( void  )
static

Definition at line 1295 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_memdup_shallow()

static void test_fr_pair_value_memdup_shallow ( void  )
static

Definition at line 1272 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_strdup()

static void test_fr_pair_value_strdup ( void  )
static

Definition at line 869 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_strdup_shallow()

static void test_fr_pair_value_strdup_shallow ( void  )
static

Definition at line 889 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_value_strtrim()

static void test_fr_pair_value_strtrim ( void  )
static

Definition at line 917 of file pair_nested_tests.c.

+ Here is the call graph for this function:

◆ test_init()

static void test_init ( void  )
static

Global initialisation.

Definition at line 36 of file pair_nested_tests.c.

Variable Documentation

◆ TEST_LIST

TEST_LIST

Definition at line 1417 of file pair_nested_tests.c.