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_FINI   test_free()
 
#define TEST_INIT   test_init()
 

Functions

static request_trequest_fake_alloc (void)
 
static void test_free (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_FINI

#define TEST_FINI   test_free()

Definition at line 27 of file pair_server_tests.c.

◆ TEST_INIT

#define TEST_INIT   test_init()

Definition at line 26 of file pair_server_tests.c.

Function Documentation

◆ request_fake_alloc()

static request_t* request_fake_alloc ( void  )
static

Definition at line 82 of file pair_server_tests.c.

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

◆ test_free()

static void test_free ( void  )
static

Definition at line 77 of file pair_server_tests.c.

+ Here is the call graph for this function:

◆ test_init()

static void test_init ( void  )
static

Global initialisation.

Definition at line 53 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 146 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 124 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 103 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 168 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 326 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 310 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 294 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 342 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 244 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 219 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 190 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 269 of file pair_server_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ autofree

TALLOC_CTX* autofree
static

Definition at line 46 of file pair_server_tests.c.

◆ test_dict

fr_dict_t* test_dict
static

Definition at line 48 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 358 of file pair_server_tests.c.

◆ test_pairs

fr_pair_list_t test_pairs
static

Definition at line 47 of file pair_server_tests.c.