![]() |
The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
|
#include "acutest_common_init.h"#include "acutest_helpers.h"#include "pair_test_helpers.h"#include <freeradius-devel/util/conf.h>#include <freeradius-devel/util/dict.h>#include <freeradius-devel/util/sbuff.h>
Include dependency graph for pair_nested_tests.c:Go to the source code of this file.
Macros | |
| #define | TEST_PRINT_PAIR(_func, _parent, _vp, _expected) |
| Print one pair into a buffer, and compare it against what we expect. | |
| #define | USE_CONSTRUCTOR |
| The 'TEST_INIT' macro provided by 'acutest.h' allowing to register a function to be called before call the unit tests. | |
Variables | |
| TEST_LIST | |
| #define TEST_PRINT_PAIR | ( | _func, | |
| _parent, | |||
| _vp, | |||
| _expected | |||
| ) |
Print one pair into a buffer, and compare it against what we expect.
Definition at line 1334 of file pair_nested_tests.c.
| #define 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_nested_tests.c.
|
extern |
Add a protocol to the global protocol table.
Inserts a protocol into the global protocol table. Uses the root attributes of the dictionary for comparisons.
| [in] | dict | of protocol we're inserting. |
Definition at line 1564 of file dict_util.c.
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
fr_pair_debug() and fr_pair_list_debug() write to a FILE, not to an sbuff
Definition at line 1507 of file pair_nested_tests.c.
Here is the call graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
fr_pair_print_secure() walks the children of a structural pair
Each child but the last is followed by a separator, so the interesting cases are no children, one child, and more than one.
Definition at line 1445 of file pair_nested_tests.c.
Here is the call graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Global initialisation.
Definition at line 36 of file pair_nested_tests.c.
| TEST_LIST |
Definition at line 1552 of file pair_nested_tests.c.
1.9.8