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>
#include <freeradius-devel/util/edit.h>
Go to the source code of this file.
◆ 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 edit_tests.c.
◆ add_pairs()
◆ expect3()
◆ test_init()
static void test_init |
( |
void |
| ) |
|
|
static |
◆ test_pair_delete_head()
static void test_pair_delete_head |
( |
void |
| ) |
|
|
static |
◆ test_pair_delete_head_abort()
static void test_pair_delete_head_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_delete_middle()
static void test_pair_delete_middle |
( |
void |
| ) |
|
|
static |
◆ test_pair_delete_middle_abort()
static void test_pair_delete_middle_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_delete_multiple()
static void test_pair_delete_multiple |
( |
void |
| ) |
|
|
static |
◆ test_pair_delete_multiple_abort()
static void test_pair_delete_multiple_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_edit_child_value()
static void test_pair_edit_child_value |
( |
void |
| ) |
|
|
static |
◆ test_pair_edit_child_value_abort()
static void test_pair_edit_child_value_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_edit_value()
static void test_pair_edit_value |
( |
void |
| ) |
|
|
static |
◆ test_pair_edit_value_abort()
static void test_pair_edit_value_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_edit_value_delete()
static void test_pair_edit_value_delete |
( |
void |
| ) |
|
|
static |
◆ test_pair_edit_value_delete_abort()
static void test_pair_edit_value_delete_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_insert_after_head()
static void test_pair_insert_after_head |
( |
void |
| ) |
|
|
static |
◆ test_pair_insert_after_head_abort()
static void test_pair_insert_after_head_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_insert_after_head_delete()
static void test_pair_insert_after_head_delete |
( |
void |
| ) |
|
|
static |
◆ test_pair_insert_after_head_delete_abort()
static void test_pair_insert_after_head_delete_abort |
( |
void |
| ) |
|
|
static |
◆ test_pair_insert_after_middle()
static void test_pair_insert_after_middle |
( |
void |
| ) |
|
|
static |
◆ test_pair_insert_after_middle_abort()
static void test_pair_insert_after_middle_abort |
( |
void |
| ) |
|
|
static |
◆ TEST_LIST