![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions to create test dictionaries for unit tests. More...
#include <freeradius-devel/util/dict.h>#include <freeradius-devel/util/value.h>
Include dependency graph for dict_test.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | fr_dict_test_attr_t |
| Test enumeration attributes. More... | |
| struct | value |
| Test enumeration values. More... | |
Typedefs | |
| typedef struct value | fr_dict_test_attr_value_t |
| Test enumeration values. | |
Functions | |
| int | fr_dict_test_attrs_init (fr_dict_t *dict, fr_dict_test_attr_t const *test_defs, unsigned int base, int inst) |
| Add our test attributes to our test dictionary. | |
| int | fr_dict_test_init (TALLOC_CTX *ctx, fr_dict_t **dict_p, fr_dict_test_attr_t const *test_defs) |
| Initialise a test dictionary and add our test_defs to it. | |
Functions to create test dictionaries for unit tests.
Definition in file dict_test.h.
| struct fr_dict_test_attr_t |
Test enumeration attributes.
Definition at line 99 of file dict_test.h.
Collaboration diagram for fr_dict_test_attr_t:| Data Fields | ||
|---|---|---|
| fr_dict_test_attr_number_t | attr | Attribute number to create. |
| fr_dict_attr_t const ** | da | Where to write a pointer to this attribute. |
| char const * | name | What to call this attribute. |
| fr_dict_attr_t const ** | parent | The parent of this attribute. |
| fr_type_t | type | What type the attribute. |
| fr_dict_test_attr_value_t * | values | Array of enumeration values to add to this attribute. |
| struct value |
Test enumeration values.
Definition at line 92 of file dict_test.h.
Collaboration diagram for value:| Data Fields | ||
|---|---|---|
| char const * | key | Enumeration name. |
| fr_value_box_t * | val | Enumeration value. |
| typedef struct value fr_dict_test_attr_value_t |
Test enumeration values.
Test attribute numbers.
Definition at line 35 of file dict_test.h.
| int fr_dict_test_attrs_init | ( | fr_dict_t * | dict, |
| fr_dict_test_attr_t const * | test_defs, | ||
| unsigned int | base, | ||
| int | inst | ||
| ) |
Add our test attributes to our test dictionary.
| [in] | dict | Test dictionary to add. |
| [in] | test_defs | Test attribute definitions to add. |
| [in] | base | to add to all attribute numbers. |
| [in] | inst | number to add to test attribute. i.e. if the attribute name is "Foo" the instance number will be appended to create "Foo-<inst>" |
Definition at line 176 of file dict_test.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int fr_dict_test_init | ( | TALLOC_CTX * | ctx, |
| fr_dict_t ** | dict_p, | ||
| fr_dict_test_attr_t const * | test_defs | ||
| ) |
Initialise a test dictionary and add our test_defs to it.
| [in] | ctx | to bind the global dictionary ctx lifetim to. |
| [out] | dict_p | Where to write a pointer to our test dictionary. May be NULL. |
| [in] | test_defs | Test attributes. If NULL will default to the default test attributes. |
Definition at line 248 of file dict_test.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
Definition at line 43 of file dict_test.c.
|
extern |
Definition at line 40 of file dict_test.c.
|
extern |
Definition at line 41 of file dict_test.c.
|
extern |
Definition at line 58 of file dict_test.c.
|
extern |
Definition at line 81 of file dict_test.c.
|
extern |
Definition at line 42 of file dict_test.c.
|
extern |
Definition at line 55 of file dict_test.c.
|
extern |
Definition at line 56 of file dict_test.c.
|
extern |
Definition at line 74 of file dict_test.c.
|
extern |
Definition at line 39 of file dict_test.c.
|
extern |
Definition at line 51 of file dict_test.c.
|
extern |
Definition at line 52 of file dict_test.c.
|
extern |
Definition at line 53 of file dict_test.c.
|
extern |
Definition at line 50 of file dict_test.c.
|
extern |
Definition at line 33 of file dict_test.c.
|
extern |
Definition at line 34 of file dict_test.c.
|
extern |
Definition at line 36 of file dict_test.c.
|
extern |
Definition at line 37 of file dict_test.c.
|
extern |
Definition at line 77 of file dict_test.c.
|
extern |
Definition at line 79 of file dict_test.c.
|
extern |
Definition at line 78 of file dict_test.c.
|
extern |
Definition at line 76 of file dict_test.c.
|
extern |
Definition at line 31 of file dict_test.c.
|
extern |
Definition at line 62 of file dict_test.c.
|
extern |
Definition at line 30 of file dict_test.c.
|
extern |
Definition at line 67 of file dict_test.c.
|
extern |
Definition at line 68 of file dict_test.c.
|
extern |
Definition at line 60 of file dict_test.c.
|
extern |
Definition at line 64 of file dict_test.c.
|
extern |
Definition at line 65 of file dict_test.c.
|
extern |
Definition at line 46 of file dict_test.c.
|
extern |
Definition at line 47 of file dict_test.c.
|
extern |
Definition at line 48 of file dict_test.c.
|
extern |
Definition at line 45 of file dict_test.c.
|
extern |
Definition at line 71 of file dict_test.c.
|
extern |
Definition at line 72 of file dict_test.c.
|
extern |
Definition at line 70 of file dict_test.c.
|
extern |
Definition at line 28 of file dict_test.c.
|
extern |
Definition at line 86 of file dict_test.c.
1.9.8