The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions | Variables
dlist_tests.c File Reference

Tests for the dlist API. More...

#include <freeradius-devel/util/acutest.h>
#include <freeradius-devel/util/acutest_helpers.h>
#include "dlist.h"
+ Include dependency graph for dlist_tests.c:

Go to the source code of this file.

Data Structures

struct  dlist_test_item_t
 

Functions

 TEST_CHECK_RET ((int) count,(int) 3)
 
static void test_dlist_entry_move (void)
 
static void test_dlist_foreach_safe (void)
 
static void test_dlist_move (void)
 

Variables

 TEST_LIST
 

Detailed Description

Tests for the dlist API.

Definition in file dlist_tests.c.


Data Structure Documentation

◆ dlist_test_item_t

struct dlist_test_item_t

Definition at line 29 of file dlist_tests.c.

+ Collaboration diagram for dlist_test_item_t:
Data Fields
fr_dlist_t entry
char const * id

Function Documentation

◆ TEST_CHECK_RET()

TEST_CHECK_RET ( (int)  count,
(int)  3 
)
+ Here is the caller graph for this function:

◆ test_dlist_entry_move()

static void test_dlist_entry_move ( void  )
static

Definition at line 122 of file dlist_tests.c.

+ Here is the call graph for this function:

◆ test_dlist_foreach_safe()

static void test_dlist_foreach_safe ( void  )
static

Definition at line 165 of file dlist_tests.c.

+ Here is the call graph for this function:

◆ test_dlist_move()

static void test_dlist_move ( void  )
static

Definition at line 34 of file dlist_tests.c.

+ Here is the call graph for this function:

Variable Documentation

◆ TEST_LIST

TEST_LIST
Initial value:
= {
{ "fr_dlist_move", test_dlist_move },
{ "fr_dlist_entry_move", test_dlist_entry_move },
{ "fr_dlist_foreach_safe", test_dlist_foreach_safe },
{ NULL }
}
static void test_dlist_move(void)
Definition: dlist_tests.c:34
static void test_dlist_foreach_safe(void)
Definition: dlist_tests.c:165
static void test_dlist_entry_move(void)
Definition: dlist_tests.c:122

Definition at line 188 of file dlist_tests.c.