The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
Macros | Functions | Variables
edit_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/edit.h>
+ Include dependency graph for edit_tests.c:

Go to the source code of this file.

Macros

#define TEST_GLOBAL_INIT   test_init()
 

Functions

static void add_pairs (fr_pair_list_t *local_pairs)
 
static void expect3 (fr_pair_list_t *local_pairs)
 
static void test_init (void)
 Global initialisation.
 
static void test_pair_delete_by_da (void)
 
static void test_pair_delete_by_da_abort (void)
 
static void test_pair_delete_head (void)
 
static void test_pair_delete_head_abort (void)
 
static void test_pair_delete_middle (void)
 
static void test_pair_delete_middle_abort (void)
 
static void test_pair_delete_multiple (void)
 
static void test_pair_delete_multiple_abort (void)
 
static void test_pair_delete_tail (void)
 
static void test_pair_delete_tail_abort (void)
 
static void test_pair_edit_child_commit_parent_abort (void)
 
static void test_pair_edit_child_value (void)
 
static void test_pair_edit_child_value_abort (void)
 
static void test_pair_edit_value (void)
 
static void test_pair_edit_value_abort (void)
 
static void test_pair_edit_value_delete (void)
 
static void test_pair_edit_value_delete_abort (void)
 
static void test_pair_free_children (void)
 
static void test_pair_free_children_abort (void)
 
static void test_pair_insert_after_head (void)
 
static void test_pair_insert_after_head_abort (void)
 
static void test_pair_insert_after_head_delete (void)
 
static void test_pair_insert_after_head_delete_abort (void)
 
static void test_pair_insert_after_middle (void)
 
static void test_pair_insert_after_middle_abort (void)
 
static void test_pair_insert_after_tail (void)
 
static void test_pair_insert_after_tail_abort (void)
 
static void test_pair_insert_list_tail (void)
 
static void test_pair_insert_list_tail_abort (void)
 
static void test_pair_replace_pair (void)
 
static void test_pair_replace_pair_abort (void)
 
static void test_pair_replace_value (void)
 
static void test_pair_replace_value_abort (void)
 

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
Alan DeKok (aland.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)

Definition in file edit_tests.c.

Macro Definition Documentation

◆ TEST_GLOBAL_INIT

#define TEST_GLOBAL_INIT   test_init()

Definition at line 25 of file edit_tests.c.

Function Documentation

◆ add_pairs()

static void add_pairs ( fr_pair_list_t *  local_pairs)
static

Definition at line 63 of file edit_tests.c.

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

◆ expect3()

static void expect3 ( fr_pair_list_t *  local_pairs)
static

Definition at line 87 of file edit_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 41 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_by_da()

static void test_pair_delete_by_da ( void  )
static

Definition at line 858 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_by_da_abort()

static void test_pair_delete_by_da_abort ( void  )
static

Definition at line 900 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_head()

static void test_pair_delete_head ( void  )
static

Definition at line 108 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_head_abort()

static void test_pair_delete_head_abort ( void  )
static

Definition at line 141 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_middle()

static void test_pair_delete_middle ( void  )
static

Definition at line 173 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_middle_abort()

static void test_pair_delete_middle_abort ( void  )
static

Definition at line 211 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_multiple()

static void test_pair_delete_multiple ( void  )
static

Definition at line 252 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_multiple_abort()

static void test_pair_delete_multiple_abort ( void  )
static

Definition at line 295 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_tail()

static void test_pair_delete_tail ( void  )
static

Definition at line 794 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_delete_tail_abort()

static void test_pair_delete_tail_abort ( void  )
static

Definition at line 828 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_child_commit_parent_abort()

static void test_pair_edit_child_commit_parent_abort ( void  )
static

Definition at line 1301 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_child_value()

static void test_pair_edit_child_value ( void  )
static

Definition at line 696 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_child_value_abort()

static void test_pair_edit_child_value_abort ( void  )
static

Definition at line 745 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_value()

static void test_pair_edit_value ( void  )
static

Definition at line 344 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_value_abort()

static void test_pair_edit_value_abort ( void  )
static

Definition at line 378 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_value_delete()

static void test_pair_edit_value_delete ( void  )
static

Definition at line 549 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_edit_value_delete_abort()

static void test_pair_edit_value_delete_abort ( void  )
static

Definition at line 587 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_free_children()

static void test_pair_free_children ( void  )
static

Definition at line 1152 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_free_children_abort()

static void test_pair_free_children_abort ( void  )
static

Definition at line 1189 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_head()

static void test_pair_insert_after_head ( void  )
static

Definition at line 415 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_head_abort()

static void test_pair_insert_after_head_abort ( void  )
static

Definition at line 448 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_head_delete()

static void test_pair_insert_after_head_delete ( void  )
static

Definition at line 627 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_head_delete_abort()

static void test_pair_insert_after_head_delete_abort ( void  )
static

Definition at line 663 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_middle()

static void test_pair_insert_after_middle ( void  )
static

Definition at line 480 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_middle_abort()

static void test_pair_insert_after_middle_abort ( void  )
static

Definition at line 513 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_tail()

static void test_pair_insert_after_tail ( void  )
static

Definition at line 1092 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_after_tail_abort()

static void test_pair_insert_after_tail_abort ( void  )
static

Definition at line 1124 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_list_tail()

static void test_pair_insert_list_tail ( void  )
static

Definition at line 1225 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_insert_list_tail_abort()

static void test_pair_insert_list_tail_abort ( void  )
static

Definition at line 1265 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_replace_pair()

static void test_pair_replace_pair ( void  )
static

Definition at line 1018 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_replace_pair_abort()

static void test_pair_replace_pair_abort ( void  )
static

Definition at line 1056 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_replace_value()

static void test_pair_replace_value ( void  )
static

Definition at line 946 of file edit_tests.c.

+ Here is the call graph for this function:

◆ test_pair_replace_value_abort()

static void test_pair_replace_value_abort ( void  )
static

Definition at line 982 of file edit_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ autofree

TALLOC_CTX* autofree
static

Definition at line 35 of file edit_tests.c.

◆ test_dict

fr_dict_t* test_dict
static

Definition at line 37 of file edit_tests.c.

◆ TEST_LIST

TEST_LIST

Definition at line 1348 of file edit_tests.c.

◆ test_pairs

fr_pair_list_t test_pairs
static

Definition at line 36 of file edit_tests.c.