The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions | Variables
pair_server_tests.c File Reference

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

#include <freeradius-devel/util/acutest.h>
#include <freeradius-devel/util/acutest_helpers.h>
#include <freeradius-devel/util/pair_test_helpers.h>
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict.h>
#include <freeradius-devel/util/dict_test.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/server/pair.h>
#include <freeradius-devel/server/request.h>
+ Include dependency graph for pair_server_tests.c:

Go to the source code of this file.

Macros

#define TEST_INIT   test_init()
 

Functions

static request_trequest_fake_alloc (void)
 
static void test_init (void)
 Global initialisation. More...
 
static void test_pair_append_control (void)
 
static void test_pair_append_reply (void)
 
static void test_pair_append_request (void)
 
static void test_pair_append_session_state (void)
 
static void test_pair_delete_control (void)
 
static void test_pair_delete_reply (void)
 
static void test_pair_delete_request (void)
 
static void test_pair_delete_session_state (void)
 
static void test_pair_update_control (void)
 
static void test_pair_update_reply (void)
 
static void test_pair_update_request (void)
 
static void test_pair_update_session_state (void)
 

Variables

static TALLOC_CTX * autofree
 
static fr_dict_ttest_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_server_tests.c.

Macro Definition Documentation

◆ TEST_INIT

#define TEST_INIT   test_init()

Definition at line 25 of file pair_server_tests.c.

Function Documentation

◆ request_fake_alloc()

static request_t* request_fake_alloc ( void  )
static

Definition at line 75 of file pair_server_tests.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_init()

static void test_init ( void  )
static

Global initialisation.

Definition at line 51 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_append_control()

static void test_pair_append_control ( void  )
static

Definition at line 139 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_append_reply()

static void test_pair_append_reply ( void  )
static

Definition at line 117 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_append_request()

static void test_pair_append_request ( void  )
static

Definition at line 96 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_append_session_state()

static void test_pair_append_session_state ( void  )
static

Definition at line 161 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_control()

static void test_pair_delete_control ( void  )
static

Definition at line 319 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_reply()

static void test_pair_delete_reply ( void  )
static

Definition at line 303 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_request()

static void test_pair_delete_request ( void  )
static

Definition at line 287 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_session_state()

static void test_pair_delete_session_state ( void  )
static

Definition at line 335 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_update_control()

static void test_pair_update_control ( void  )
static

Definition at line 237 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_update_reply()

static void test_pair_update_reply ( void  )
static

Definition at line 212 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_update_request()

static void test_pair_update_request ( void  )
static

Definition at line 183 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_pair_update_session_state()

static void test_pair_update_session_state ( void  )
static

Definition at line 262 of file pair_server_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ autofree

TALLOC_CTX* autofree
static

Definition at line 44 of file pair_server_tests.c.

◆ test_dict

fr_dict_t* test_dict
static

Definition at line 46 of file pair_server_tests.c.

◆ TEST_LIST

TEST_LIST
Initial value:
= {
{ "pair_append_request", test_pair_append_request },
{ "pair_append_reply", test_pair_append_reply },
{ "pair_append_control", test_pair_append_control },
{ "pair_append_session_state", test_pair_append_session_state },
{ "pair_update_request", test_pair_update_request },
{ "pair_update_reply", test_pair_update_reply },
{ "pair_update_control", test_pair_update_control },
{ "pair_update_session_state", test_pair_update_session_state },
{ "pair_delete_request", test_pair_delete_request },
{ "pair_delete_reply", test_pair_delete_reply },
{ "pair_delete_control", test_pair_delete_control },
{ "pair_delete_session_state", test_pair_delete_session_state },
{ NULL }
}
static void test_pair_update_control(void)
static void test_pair_append_request(void)
static void test_pair_append_session_state(void)
static void test_pair_delete_request(void)
static void test_pair_append_control(void)
static void test_pair_delete_session_state(void)
static void test_pair_update_request(void)
static void test_pair_delete_control(void)
static void test_pair_append_reply(void)
static void test_pair_update_session_state(void)
static void test_pair_delete_reply(void)
static void test_pair_update_reply(void)

Definition at line 351 of file pair_server_tests.c.

◆ test_pairs

fr_pair_list_t test_pairs
static

Definition at line 45 of file pair_server_tests.c.