Tests for fr_pair_ctx_afrom_substr()
More...
#include "acutest_common_init.h"
#include "acutest_helpers.h"
#include <freeradius-devel/util/dict_test.h>
#include <freeradius-devel/util/pair.h>
Go to the source code of this file.
Tests for fr_pair_ctx_afrom_substr()
- Copyright
- 2026 The FreeRADIUS server project
Definition in file pair_tokenize_tests.c.
◆ TEST_GLOBAL_INIT
◆ pair_ctx_check_error()
| static void pair_ctx_check_error |
( |
fr_pair_ctx_t * |
pair_ctx, |
|
|
char const * |
in, |
|
|
fr_slen_t |
offset, |
|
|
char const * |
msg |
|
) |
| |
|
static |
Check that a parse fails at the expected offset with the expected message.
Definition at line 258 of file pair_tokenize_tests.c.
◆ pair_ctx_init()
◆ test_context_nested()
| static void test_context_nested |
( |
void |
| ) |
|
|
static |
◆ test_context_structural()
| static void test_context_structural |
( |
void |
| ) |
|
|
static |
◆ test_errors()
| static void test_errors |
( |
void |
| ) |
|
|
static |
◆ test_init()
| static void test_init |
( |
void |
| ) |
|
|
static |
◆ test_leaf_bareword_stops_at_comma()
| static void test_leaf_bareword_stops_at_comma |
( |
void |
| ) |
|
|
static |
◆ test_leaf_leading_whitespace()
| static void test_leaf_leading_whitespace |
( |
void |
| ) |
|
|
static |
The sbuff bounds the input, so skipping leading whitespace cannot run past the end of the input.
Definition at line 131 of file pair_tokenize_tests.c.
◆ test_leaf_quoted()
| static void test_leaf_quoted |
( |
void |
| ) |
|
|
static |
◆ test_whitespace_only()
| static void test_whitespace_only |
( |
void |
| ) |
|
|
static |
◆ autofree
◆ test_dict
◆ TEST_LIST
Initial value:= {
}
static void test_whitespace_only(void)
static void test_leaf_quoted(void)
static void test_context_structural(void)
static void test_context_nested(void)
static void test_leaf_bareword_stops_at_comma(void)
static void test_errors(void)
static void test_leaf_leading_whitespace(void)
The sbuff bounds the input, so skipping leading whitespace cannot run past the end of the input.
Definition at line 311 of file pair_tokenize_tests.c.