Tests for cf_file, cf_util, and cf_parse.
More...
#include <freeradius-devel/util/test/acutest.h>
#include <freeradius-devel/util/test/acutest_helpers.h>
#include <freeradius-devel/server/cf_file.h>
#include <freeradius-devel/server/cf_util.h>
#include <freeradius-devel/server/cf_priv.h>
Go to the source code of this file.
Tests for cf_file, cf_util, and cf_parse.
- Copyright
- 2026 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file cf_tests.c.
◆ TEST_INIT
◆ test_cf_root()
| static void test_cf_root |
( |
void |
| ) |
|
|
static |
◆ test_data_add_find()
| static void test_data_add_find |
( |
void |
| ) |
|
|
static |
◆ test_data_find_missing()
| static void test_data_find_missing |
( |
void |
| ) |
|
|
static |
◆ test_data_remove()
| static void test_data_remove |
( |
void |
| ) |
|
|
static |
◆ test_expand_missing_ref()
| static void test_expand_missing_ref |
( |
void |
| ) |
|
|
static |
◆ test_expand_nested_ref()
| static void test_expand_nested_ref |
( |
void |
| ) |
|
|
static |
◆ test_expand_no_variables()
| static void test_expand_no_variables |
( |
void |
| ) |
|
|
static |
◆ test_expand_section_ref()
| static void test_expand_section_ref |
( |
void |
| ) |
|
|
static |
◆ test_filename_lineno()
| static void test_filename_lineno |
( |
void |
| ) |
|
|
static |
◆ test_filename_set()
| static void test_filename_set |
( |
void |
| ) |
|
|
static |
◆ test_init()
| static void test_init |
( |
void |
| ) |
|
|
static |
Global initialisation.
Definition at line 37 of file cf_tests.c.
◆ test_item_free_children()
| static void test_item_free_children |
( |
void |
| ) |
|
|
static |
◆ test_item_mark_parsed()
| static void test_item_mark_parsed |
( |
void |
| ) |
|
|
static |
◆ test_item_next_mixed()
| static void test_item_next_mixed |
( |
void |
| ) |
|
|
static |
◆ test_item_remove_pair()
| static void test_item_remove_pair |
( |
void |
| ) |
|
|
static |
◆ test_item_remove_section()
| static void test_item_remove_section |
( |
void |
| ) |
|
|
static |
◆ test_lineno_set()
| static void test_lineno_set |
( |
void |
| ) |
|
|
static |
◆ test_pair_alloc_basic()
| static void test_pair_alloc_basic |
( |
void |
| ) |
|
|
static |
◆ test_pair_alloc_no_value()
| static void test_pair_alloc_no_value |
( |
void |
| ) |
|
|
static |
◆ test_pair_alloc_operators()
| static void test_pair_alloc_operators |
( |
void |
| ) |
|
|
static |
◆ test_pair_alloc_quoted()
| static void test_pair_alloc_quoted |
( |
void |
| ) |
|
|
static |
◆ test_pair_count()
| static void test_pair_count |
( |
void |
| ) |
|
|
static |
◆ test_pair_count_descendents()
| static void test_pair_count_descendents |
( |
void |
| ) |
|
|
static |
◆ test_pair_dup()
| static void test_pair_dup |
( |
void |
| ) |
|
|
static |
◆ test_pair_find_basic()
| static void test_pair_find_basic |
( |
void |
| ) |
|
|
static |
◆ test_pair_find_missing()
| static void test_pair_find_missing |
( |
void |
| ) |
|
|
static |
◆ test_pair_find_next()
| static void test_pair_find_next |
( |
void |
| ) |
|
|
static |
◆ test_pair_first_next()
| static void test_pair_first_next |
( |
void |
| ) |
|
|
static |
◆ test_pair_in_table_found()
| static void test_pair_in_table_found |
( |
void |
| ) |
|
|
static |
◆ test_pair_in_table_invalid()
| static void test_pair_in_table_invalid |
( |
void |
| ) |
|
|
static |
◆ test_pair_prev()
| static void test_pair_prev |
( |
void |
| ) |
|
|
static |
◆ test_pair_replace()
| static void test_pair_replace |
( |
void |
| ) |
|
|
static |
◆ test_pair_to_item_roundtrip()
| static void test_pair_to_item_roundtrip |
( |
void |
| ) |
|
|
static |
◆ test_pair_values_concat()
| static void test_pair_values_concat |
( |
void |
| ) |
|
|
static |
◆ test_pair_values_concat_missing()
| static void test_pair_values_concat_missing |
( |
void |
| ) |
|
|
static |
◆ test_reference_item_missing()
| static void test_reference_item_missing |
( |
void |
| ) |
|
|
static |
◆ test_reference_item_pair()
| static void test_reference_item_pair |
( |
void |
| ) |
|
|
static |
◆ test_reference_item_section()
| static void test_reference_item_section |
( |
void |
| ) |
|
|
static |
◆ test_section_alloc_name1_name2()
| static void test_section_alloc_name1_name2 |
( |
void |
| ) |
|
|
static |
◆ test_section_alloc_name1_only()
| static void test_section_alloc_name1_only |
( |
void |
| ) |
|
|
static |
◆ test_section_alloc_parent()
| static void test_section_alloc_parent |
( |
void |
| ) |
|
|
static |
◆ test_section_dup_basic()
| static void test_section_dup_basic |
( |
void |
| ) |
|
|
static |
◆ test_section_dup_rename()
| static void test_section_dup_rename |
( |
void |
| ) |
|
|
static |
◆ test_section_find_child()
| static void test_section_find_child |
( |
void |
| ) |
|
|
static |
◆ test_section_find_missing()
| static void test_section_find_missing |
( |
void |
| ) |
|
|
static |
◆ test_section_find_name1_name2()
| static void test_section_find_name1_name2 |
( |
void |
| ) |
|
|
static |
◆ test_section_find_next()
| static void test_section_find_next |
( |
void |
| ) |
|
|
static |
◆ test_section_first_next()
| static void test_section_first_next |
( |
void |
| ) |
|
|
static |
◆ test_section_name_cmp()
| static void test_section_name_cmp |
( |
void |
| ) |
|
|
static |
◆ test_section_prev()
| static void test_section_prev |
( |
void |
| ) |
|
|
static |
◆ test_section_to_item_roundtrip()
| static void test_section_to_item_roundtrip |
( |
void |
| ) |
|
|
static |
◆ test_section_value_find()
| static void test_section_value_find |
( |
void |
| ) |
|
|
static |
◆ autofree
◆ TEST_LIST
◆ test_table
Initial value:= {
}
#define L(_str)
Helper for initialising arrays of string literals.
Definition at line 1138 of file cf_tests.c.
◆ test_table_len