Tests for a AVP manipulation and search API.
More...
#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>
Go to the source code of this file.
Tests for a AVP manipulation and search API.
- Author
- Jorge Pereira jpere.nosp@m.ira@.nosp@m.freer.nosp@m.adiu.nosp@m.s.org
- Copyright
- 2020 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file pair_tests.c.
◆ 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_tests.c.
◆ test_fr_pair_afrom_child_num()
static void test_fr_pair_afrom_child_num |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_afrom_da()
static void test_fr_pair_afrom_da |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_afrom_da_nested()
static void test_fr_pair_afrom_da_nested |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_append()
static void test_fr_pair_append |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_append_by_da_parent()
static void test_fr_pair_append_by_da_parent |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_cmp()
static void test_fr_pair_cmp |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_copy()
static void test_fr_pair_copy |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_dcursor_by_ancestor_init()
static void test_fr_pair_dcursor_by_ancestor_init |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_dcursor_by_da_init()
static void test_fr_pair_dcursor_by_da_init |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_dcursor_value_init()
static void test_fr_pair_dcursor_value_init |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_delete()
static void test_fr_pair_delete |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_delete_by_child_num()
static void test_fr_pair_delete_by_child_num |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_delete_by_da()
static void test_fr_pair_delete_by_da |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_delete_by_da_nested()
static void test_fr_pair_delete_by_da_nested |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_find_by_child_num_idx()
static void test_fr_pair_find_by_child_num_idx |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_find_by_da_idx()
static void test_fr_pair_find_by_da_idx |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_find_by_da_nested()
static void test_fr_pair_find_by_da_nested |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_cmp()
static void test_fr_pair_list_cmp |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_copy()
static void test_fr_pair_list_copy |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_copy_by_ancestor()
static void test_fr_pair_list_copy_by_ancestor |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_copy_by_da()
static void test_fr_pair_list_copy_by_da |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_sort()
static void test_fr_pair_list_sort |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_nested_verify()
static void test_fr_pair_nested_verify |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_prepend_by_da()
static void test_fr_pair_prepend_by_da |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_raw_afrom_pair()
static void test_fr_pair_raw_afrom_pair |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_steal()
static void test_fr_pair_steal |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_update_by_da_parent()
static void test_fr_pair_update_by_da_parent |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_aprintf()
static void test_fr_pair_value_aprintf |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstr_alloc()
static void test_fr_pair_value_bstr_alloc |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstr_append_buffer()
static void test_fr_pair_value_bstr_append_buffer |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstr_realloc()
static void test_fr_pair_value_bstr_realloc |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstrdup_buffer()
static void test_fr_pair_value_bstrdup_buffer |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstrdup_buffer_shallow()
static void test_fr_pair_value_bstrdup_buffer_shallow |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstrn_append()
static void test_fr_pair_value_bstrn_append |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstrndup()
static void test_fr_pair_value_bstrndup |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_bstrndup_shallow()
static void test_fr_pair_value_bstrndup_shallow |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_copy()
static void test_fr_pair_value_copy |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_enum()
static void test_fr_pair_value_enum |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_enum_box()
static void test_fr_pair_value_enum_box |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_from_str()
static void test_fr_pair_value_from_str |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_mem_alloc()
static void test_fr_pair_value_mem_alloc |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_mem_append()
static void test_fr_pair_value_mem_append |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_mem_append_buffer()
static void test_fr_pair_value_mem_append_buffer |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_mem_realloc()
static void test_fr_pair_value_mem_realloc |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_memdup()
static void test_fr_pair_value_memdup |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_memdup_buffer()
static void test_fr_pair_value_memdup_buffer |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_memdup_buffer_shallow()
static void test_fr_pair_value_memdup_buffer_shallow |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_memdup_shallow()
static void test_fr_pair_value_memdup_shallow |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_strdup()
static void test_fr_pair_value_strdup |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_strdup_shallow()
static void test_fr_pair_value_strdup_shallow |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_value_strtrim()
static void test_fr_pair_value_strtrim |
( |
void |
| ) |
|
|
static |
◆ test_init()
static void test_init |
( |
void |
| ) |
|
|
static |
◆ TEST_LIST