The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Macros | Functions | Variables
fifo_tests.c File Reference

Tests for the FIFO queue. More...

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

Go to the source code of this file.

Macros

#define FIFO_TEST_SIZE   128
 

Functions

static void test_fifo_create (void)
 
static void test_fifo_create_invalid (void)
 
static void test_fifo_free_callback (void)
 
static void test_fifo_full (void)
 
static void test_fifo_null_args (void)
 
static void test_fifo_partial_drain (void)
 
static void test_fifo_peek (void)
 
static void test_fifo_push_pop (void)
 
static void test_fifo_wraparound (void)
 
static void test_free_callback (void *data)
 

Variables

static unsigned int free_count
 
 TEST_LIST
 

Detailed Description

Tests for the FIFO queue.

Definition in file fifo_tests.c.

Macro Definition Documentation

◆ FIFO_TEST_SIZE

#define FIFO_TEST_SIZE   128

Definition at line 28 of file fifo_tests.c.

Function Documentation

◆ test_fifo_create()

static void test_fifo_create ( void  )
static

Definition at line 30 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_create_invalid()

static void test_fifo_create_invalid ( void  )
static

Definition at line 42 of file fifo_tests.c.

◆ test_fifo_free_callback()

static void test_fifo_free_callback ( void  )
static

Definition at line 241 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_full()

static void test_fifo_full ( void  )
static

Definition at line 127 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_null_args()

static void test_fifo_null_args ( void  )
static

Definition at line 264 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_partial_drain()

static void test_fifo_partial_drain ( void  )
static

Definition at line 190 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_peek()

static void test_fifo_peek ( void  )
static

Definition at line 97 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_push_pop()

static void test_fifo_push_pop ( void  )
static

Definition at line 59 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_fifo_wraparound()

static void test_fifo_wraparound ( void  )
static

Definition at line 153 of file fifo_tests.c.

+ Here is the call graph for this function:

◆ test_free_callback()

static void test_free_callback ( void *  data)
static

Definition at line 235 of file fifo_tests.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ free_count

unsigned int free_count
static

Definition at line 233 of file fifo_tests.c.

◆ TEST_LIST

TEST_LIST
Initial value:
= {
{ "fifo_create", test_fifo_create },
{ "fifo_create_invalid", test_fifo_create_invalid },
{ "fifo_push_pop", test_fifo_push_pop },
{ "fifo_peek", test_fifo_peek },
{ "fifo_full", test_fifo_full },
{ "fifo_wraparound", test_fifo_wraparound },
{ "fifo_partial_drain", test_fifo_partial_drain },
{ "fifo_free_callback", test_fifo_free_callback },
{ "fifo_null_args", test_fifo_null_args },
}
#define TEST_TERMINATOR
Definition acutest.h:64
static void test_fifo_full(void)
Definition fifo_tests.c:127
static void test_fifo_create_invalid(void)
Definition fifo_tests.c:42
static void test_fifo_peek(void)
Definition fifo_tests.c:97
static void test_fifo_free_callback(void)
Definition fifo_tests.c:241
static void test_fifo_partial_drain(void)
Definition fifo_tests.c:190
static void test_fifo_null_args(void)
Definition fifo_tests.c:264
static void test_fifo_push_pop(void)
Definition fifo_tests.c:59
static void test_fifo_create(void)
Definition fifo_tests.c:30
static void test_fifo_wraparound(void)
Definition fifo_tests.c:153

Definition at line 272 of file fifo_tests.c.