The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
Macros | Functions | Variables
pair_legacy_tests.c File Reference

Tests for a AVP manipulation and search API. More...

#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/pair_legacy.h>
+ Include dependency graph for pair_legacy_tests.c:

Go to the source code of this file.

Macros

#define TEST_GLOBAL_INIT   test_init()
 

Functions

static FILE * open_buffer_as_file (uint8_t const *buffer, size_t buffer_len)
 
static void test_fr_pair_list_afrom_file (void)
 
static void test_fr_pair_list_afrom_substr (void)
 
static void test_fr_pair_list_afrom_substr_exec (void)
 
static void test_fr_pair_list_move_op (void)
 
static void test_init (void)
 Global initialisation.
 

Variables

static TALLOC_CTX * autofree
 
static fr_dict_t * test_dict
 
 TEST_LIST
 
static fr_pair_list_t test_pairs
 

Detailed Description

Tests for a AVP manipulation and search API.

Author
Jorge Pereira jpere.nosp@m.ira@.nosp@m.freer.nosp@m.adiu.nosp@m.s.org

Definition in file pair_legacy_tests.c.

Macro Definition Documentation

◆ TEST_GLOBAL_INIT

#define TEST_GLOBAL_INIT   test_init()

Definition at line 25 of file pair_legacy_tests.c.

Function Documentation

◆ open_buffer_as_file()

static FILE * open_buffer_as_file ( uint8_t const *  buffer,
size_t  buffer_len 
)
static

Definition at line 187 of file pair_legacy_tests.c.

+ Here is the caller graph for this function:

◆ test_fr_pair_list_afrom_file()

static void test_fr_pair_list_afrom_file ( void  )
static

Definition at line 199 of file pair_legacy_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_afrom_substr()

static void test_fr_pair_list_afrom_substr ( void  )
static

Definition at line 64 of file pair_legacy_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_afrom_substr_exec()

static void test_fr_pair_list_afrom_substr_exec ( void  )
static

Definition at line 109 of file pair_legacy_tests.c.

+ Here is the call graph for this function:

◆ test_fr_pair_list_move_op()

static void test_fr_pair_list_move_op ( void  )
static

Definition at line 235 of file pair_legacy_tests.c.

+ Here is the call graph for this function:

◆ test_init()

static void test_init ( void  )
static

Global initialisation.

Definition at line 42 of file pair_legacy_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ autofree

TALLOC_CTX* autofree
static

Definition at line 35 of file pair_legacy_tests.c.

◆ test_dict

fr_dict_t* test_dict
static

Definition at line 37 of file pair_legacy_tests.c.

◆ TEST_LIST

TEST_LIST
Initial value:
= {
{ "fr_pair_list_afrom_substr", test_fr_pair_list_afrom_substr },
{ "fr_pair_list_afrom_substr_exec", test_fr_pair_list_afrom_substr_exec },
{ "fr_pair_list_afrom_file", test_fr_pair_list_afrom_file },
{ "fr_pair_list_move_op", test_fr_pair_list_move_op },
}
#define TEST_TERMINATOR
Definition acutest.h:77
static void test_fr_pair_list_afrom_file(void)
static void test_fr_pair_list_move_op(void)
static void test_fr_pair_list_afrom_substr(void)
static void test_fr_pair_list_afrom_substr_exec(void)

Definition at line 280 of file pair_legacy_tests.c.

◆ test_pairs

fr_pair_list_t test_pairs
static

Definition at line 36 of file pair_legacy_tests.c.