Tests for tmpl parsing and printing.
More...
#include <freeradius-devel/util/test/acutest.h>
#include <freeradius-devel/util/test/acutest_helpers.h>
#include <freeradius-devel/util/dict_test.h>
#include <freeradius-devel/server/tmpl.h>
#include <freeradius-devel/server/tmpl_dcursor.h>
#include <freeradius-devel/server/pair.h>
Go to the source code of this file.
Tests for tmpl parsing and printing.
- Copyright
- 2026 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file tmpl_tests.c.
◆ TEST_INIT
◆ test_rules
Value:
.attr = { \
} \
})
fr_dict_attr_t const * request_attr_request
struct tmpl_rules_s tmpl_rules_t
static fr_dict_t * test_dict
Default tmpl rules for tests.
Definition at line 80 of file tmpl_tests.c.
◆ request_fake_alloc()
| static request_t * request_fake_alloc |
( |
void |
| ) |
|
|
static |
◆ test_cast_invalid()
| static void test_cast_invalid |
( |
void |
| ) |
|
|
static |
◆ test_cast_uint32_to_uint64()
| static void test_cast_uint32_to_uint64 |
( |
void |
| ) |
|
|
static |
◆ test_cast_unresolved_to_string()
| static void test_cast_unresolved_to_string |
( |
void |
| ) |
|
|
static |
◆ test_cast_unresolved_to_uint32()
| static void test_cast_unresolved_to_uint32 |
( |
void |
| ) |
|
|
static |
◆ test_copy_attr()
| static void test_copy_attr |
( |
void |
| ) |
|
|
static |
◆ test_copy_data()
| static void test_copy_data |
( |
void |
| ) |
|
|
static |
◆ test_copy_data_unresolved()
| static void test_copy_data_unresolved |
( |
void |
| ) |
|
|
static |
◆ test_eval_attr_count()
| static void test_eval_attr_count |
( |
void |
| ) |
|
|
static |
◆ test_eval_attr_found()
| static void test_eval_attr_found |
( |
void |
| ) |
|
|
static |
◆ test_eval_attr_missing()
| static void test_eval_attr_missing |
( |
void |
| ) |
|
|
static |
◆ test_eval_attr_multiple()
| static void test_eval_attr_multiple |
( |
void |
| ) |
|
|
static |
◆ test_eval_data()
| static void test_eval_data |
( |
void |
| ) |
|
|
static |
◆ test_find_or_add_existing()
| static void test_find_or_add_existing |
( |
void |
| ) |
|
|
static |
◆ test_find_or_add_new()
| static void test_find_or_add_new |
( |
void |
| ) |
|
|
static |
◆ test_find_vp_found()
| static void test_find_vp_found |
( |
void |
| ) |
|
|
static |
◆ test_find_vp_missing()
| static void test_find_vp_missing |
( |
void |
| ) |
|
|
static |
◆ test_from_value_box_ipaddr()
| static void test_from_value_box_ipaddr |
( |
void |
| ) |
|
|
static |
◆ test_from_value_box_string()
| static void test_from_value_box_string |
( |
void |
| ) |
|
|
static |
◆ test_from_value_box_uint32()
| static void test_from_value_box_uint32 |
( |
void |
| ) |
|
|
static |
◆ test_init()
| static void test_init |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_all()
| static void test_parse_attr_all |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_count()
| static void test_parse_attr_count |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_empty_ref()
| static void test_parse_attr_empty_ref |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_emptystring()
| static void test_parse_attr_emptystring |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_index()
| static void test_parse_attr_index |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_invalid()
| static void test_parse_attr_invalid |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_last()
| static void test_parse_attr_last |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_missing()
| static void test_parse_attr_missing |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_nested()
| static void test_parse_attr_nested |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_simple()
| static void test_parse_attr_simple |
( |
void |
| ) |
|
|
static |
◆ test_parse_attr_unresolved_disallowed()
| static void test_parse_attr_unresolved_disallowed |
( |
void |
| ) |
|
|
static |
◆ test_parse_bareword_attr()
| static void test_parse_bareword_attr |
( |
void |
| ) |
|
|
static |
◆ test_parse_double_quoted_literal()
| static void test_parse_double_quoted_literal |
( |
void |
| ) |
|
|
static |
◆ test_parse_double_quoted_xlat()
| static void test_parse_double_quoted_xlat |
( |
void |
| ) |
|
|
static |
◆ test_parse_single_quoted()
| static void test_parse_single_quoted |
( |
void |
| ) |
|
|
static |
◆ test_print_attr()
| static void test_print_attr |
( |
void |
| ) |
|
|
static |
◆ test_print_data_string()
| static void test_print_data_string |
( |
void |
| ) |
|
|
static |
◆ test_print_data_uint32()
| static void test_print_data_uint32 |
( |
void |
| ) |
|
|
static |
◆ test_print_quoted()
| static void test_print_quoted |
( |
void |
| ) |
|
|
static |
◆ test_type_checking()
| static void test_type_checking |
( |
void |
| ) |
|
|
static |
◆ autofree
◆ test_dict
◆ TEST_LIST