![]() |
The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
|
Tests for value box functions. More...
#include "acutest_common_init.h"#include "acutest_helpers.h"#include <freeradius-devel/util/value.h>
Include dependency graph for value_tests.c:Go to the source code of this file.
Macros | |
| #define | SAFE_FOR_X ((fr_value_box_safe_for_t) 0x1000) |
| #define | SAFE_FOR_Y ((fr_value_box_safe_for_t) 0x2000) |
Functions | |
| static void | safe_for_concat_check (fr_type_t type, fr_value_box_safe_for_t const tokens[], size_t num, fr_value_box_safe_for_t expect) |
| Concatenate a list into a separate output box and check the resulting safe_for. | |
| static void | safe_for_list_build (fr_value_box_list_t *list, fr_value_box_safe_for_t const tokens[], size_t num) |
| Build a list of single character string boxes, each marked with the matching token. | |
| static void | test_as_uint64 (void) |
| static void | test_asprintf (void) |
| static void | test_bstrndup (void) |
| static void | test_bstrndup_replace (void) |
| static void | test_cast_bool_to_uint32 (void) |
| static void | test_cast_in_place_uint32_to_string (void) |
| static void | test_cast_in_place_uint32_to_uint64 (void) |
| static void | test_cast_int32_to_int64 (void) |
| static void | test_cast_octets_to_string_preserves_safe_for (void) |
| static void | test_cast_same_type (void) |
| static void | test_cast_string_to_octets_preserves_safe_for (void) |
| static void | test_cast_string_to_uint32 (void) |
| static void | test_cast_uint32_to_bool (void) |
| static void | test_cast_uint32_to_string (void) |
| static void | test_cast_uint32_to_string_clears_safe_for (void) |
| static void | test_cast_uint32_to_uint64 (void) |
| static void | test_cast_uint8_to_uint32 (void) |
| static void | test_clear (void) |
| static void | test_clear_string (void) |
| static void | test_cmp_bool (void) |
| static void | test_cmp_different_types (void) |
| static void | test_cmp_float64 (void) |
| static void | test_cmp_int32 (void) |
| static void | test_cmp_octets (void) |
| static void | test_cmp_octets_length (void) |
| static void | test_cmp_op_eq (void) |
| static void | test_cmp_op_ge (void) |
| static void | test_cmp_op_gt (void) |
| static void | test_cmp_op_le (void) |
| static void | test_cmp_op_lt (void) |
| static void | test_cmp_op_ne (void) |
| static void | test_cmp_string (void) |
| static void | test_cmp_uint32_equal (void) |
| static void | test_cmp_uint32_less (void) |
| static void | test_concat_any_any_is_any (void) |
| static void | test_concat_any_x_is_x (void) |
| static void | test_concat_into_head_x_x_is_x (void) |
| The list head doubles as the output box. | |
| static void | test_concat_octets_x_x_is_x (void) |
| static void | test_concat_x_any_is_x (void) |
| static void | test_concat_x_none_is_none (void) |
| static void | test_concat_x_x_is_x (void) |
| static void | test_concat_x_y_is_none (void) |
| static void | test_copy_octets (void) |
| static void | test_copy_preserves_safe_for (void) |
| static void | test_copy_preserves_tainted (void) |
| static void | test_copy_string (void) |
| static void | test_copy_uint32 (void) |
| static void | test_escape_in_place_func_cast (void) |
| static void | test_escape_in_place_func_string (void) |
| static void | test_escape_in_place_func_unchanged (void) |
| static void | test_from_str_bool (void) |
| static void | test_from_str_float64 (void) |
| static void | test_from_str_int32 (void) |
| static void | test_from_str_octets (void) |
| static void | test_from_str_string (void) |
| static void | test_from_str_uint32 (void) |
| static void | test_hash_different_values (void) |
| static void | test_hash_same_values (void) |
| static void | test_hash_string (void) |
| static void | test_increment_int32 (void) |
| static void | test_increment_uint32 (void) |
| static void | test_increment_uint8_overflow (void) |
| static void | test_init (void) |
| static void | test_list_safety_merge (void) |
| static void | test_memdup (void) |
| static void | test_network_bool (void) |
| static void | test_network_int32 (void) |
| static void | test_network_length (void) |
| static void | test_network_uint32 (void) |
| static void | test_network_uint64 (void) |
| static fr_slen_t | test_percent_escape (fr_sbuff_t *out, fr_sbuff_t *in) |
| Escape function for the in-place escape tests, writes '' as "%25". | |
| static void | test_print_bool (void) |
| static void | test_print_int32_negative (void) |
| static void | test_print_octets (void) |
| static void | test_print_string (void) |
| static void | test_print_uint32 (void) |
| static void | test_round_trip_bool (void) |
| static void | test_round_trip_int64 (void) |
| static void | test_round_trip_network_uint32 (void) |
| static void | test_round_trip_uint32 (void) |
| static void | test_strdup (void) |
| static void | test_tainted_flag (void) |
| static void | test_truthy_bool (void) |
| static void | test_truthy_octets (void) |
| static void | test_truthy_string (void) |
| static void | test_truthy_uint32 (void) |
Variables | |
| static TALLOC_CTX * | autofree |
| TEST_LIST | |
Tests for value box functions.
Definition in file value_tests.c.
| #define SAFE_FOR_X ((fr_value_box_safe_for_t) 0x1000) |
Definition at line 456 of file value_tests.c.
| #define SAFE_FOR_Y ((fr_value_box_safe_for_t) 0x2000) |
Definition at line 457 of file value_tests.c.
|
static |
Concatenate a list into a separate output box and check the resulting safe_for.
Definition at line 544 of file value_tests.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Build a list of single character string boxes, each marked with the matching token.
Definition at line 526 of file value_tests.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
Definition at line 1268 of file value_tests.c.
Here is the call graph for this function:
Here is the caller 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 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The list head doubles as the output box.
Definition at line 614 of file value_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 |
|
static |
Definition at line 30 of file value_tests.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Escape function for the in-place escape tests, writes '' as "%25".
Definition at line 1248 of file value_tests.c.
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 892 of file value_tests.c.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 28 of file value_tests.c.
| TEST_LIST |
Definition at line 1346 of file value_tests.c.
1.9.8