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/pair_legacy.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 pair_tests_init() by "__attribute__((constructor));" reducing the test execution by 50% of the time.
Definition at line 30 of file pair_legacy_tests.c.
◆ open_buffer_as_file()
static FILE* open_buffer_as_file |
( |
uint8_t const * |
buffer, |
|
|
size_t |
buffer_len |
|
) |
| |
|
static |
◆ test_fr_pair_list_afrom_file()
static void test_fr_pair_list_afrom_file |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_afrom_substr()
static void test_fr_pair_list_afrom_substr |
( |
void |
| ) |
|
|
static |
◆ test_fr_pair_list_move_op()
static void test_fr_pair_list_move_op |
( |
void |
| ) |
|
|
static |
◆ test_init()
static void test_init |
( |
void |
| ) |
|
|
static |
◆ TEST_LIST
Initial value:= {
{ NULL }
}
static void test_fr_pair_list_afrom_file(void)
static void test_fr_pair_list_move_op(void)
static void test_fr_pair_list_afrom_substr(void)
Definition at line 218 of file pair_legacy_tests.c.