#include <freeradius-devel/util/acutest.h>
#include <freeradius-devel/util/acutest_helpers.h>
#include <float.h>
#include "dbuff.h"
Go to the source code of this file.
◆ fr_dbuff_fd_test_body
◆ fd_body()
◆ max_body()
◆ test_dbuff_fd()
static void test_dbuff_fd |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_fd_max()
static void test_dbuff_fd_max |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_fd_shell()
◆ test_dbuff_init()
static void test_dbuff_init |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_init_no_parent()
static void test_dbuff_init_no_parent |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_max()
static void test_dbuff_max |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_move()
static void test_dbuff_move |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_net_encode()
static void test_dbuff_net_encode |
( |
void |
| ) |
|
|
static |
Test the various dbuff_net_encode() functions and macros.
- Note
- Passing constants to fr_dbuff_in() as it is written results in warnings about narrowing casts on the constants–but those casts are in the underlying inlined fr_nbo_from*() functions. They have to be there; that's how those functions work. (The tests worked despite the warnings.) Using variables avoids the warnings, at least with the compile options the build system uses by default.
Definition at line 77 of file dbuff_tests.c.
◆ test_dbuff_no_advance()
static void test_dbuff_no_advance |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_out()
static void test_dbuff_out |
( |
void |
| ) |
|
|
static |
Test functions that read from dbuffs.
Definition at line 409 of file dbuff_tests.c.
◆ test_dbuff_talloc_extend()
static void test_dbuff_talloc_extend |
( |
void |
| ) |
|
|
static |
◆ test_dbuff_talloc_extend_multi_level()
static void test_dbuff_talloc_extend_multi_level |
( |
void |
| ) |
|
|
static |
◆ TEST_LIST
Initial value:= {
{ NULL }
}
static void test_dbuff_init_no_parent(void)
static void test_dbuff_talloc_extend(void)
Test extensible dbuffs.
static void test_dbuff_out(void)
Test functions that read from dbuffs.
static void test_dbuff_max(void)
static void test_dbuff_talloc_extend_multi_level(void)
static void test_dbuff_init(void)
static void test_dbuff_no_advance(void)
static void test_dbuff_net_encode(void)
Test the various dbuff_net_encode() functions and macros.
static void test_dbuff_move(void)
static void test_dbuff_fd(void)
static void test_dbuff_fd_max(void)
Definition at line 510 of file dbuff_tests.c.