OpenVPN
Functions
test_fixtures.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
Include dependency graph for test_fixtures.c:

Go to the source code of this file.

Functions

static int setup_only (void **state)
 
static int teardown_only (void **state)
 
static void malloc_setup_test (void **state)
 
static void malloc_teardown_test (void **state)
 
static int prestate_setup (void **state)
 
static int prestate_teardown (void **state)
 
static void prestate_setup_test (void **state)
 
static void prestate_test (void **state)
 
int main (void)
 

Function Documentation

◆ main()

int main ( void  )

◆ malloc_setup_test()

static void malloc_setup_test ( void **  state)
static

Definition at line 22 of file test_fixtures.c.

References assert_non_null, and free.

Referenced by main().

◆ malloc_teardown_test()

static void malloc_teardown_test ( void **  state)
static

Definition at line 28 of file test_fixtures.c.

References assert_non_null, and malloc.

Referenced by main().

◆ prestate_setup()

static int prestate_setup ( void **  state)
static

Definition at line 34 of file test_fixtures.c.

References malloc.

Referenced by main().

◆ prestate_setup_test()

static void prestate_setup_test ( void **  state)
static

Definition at line 52 of file test_fixtures.c.

References assert_int_equal, and assert_non_null.

Referenced by main().

◆ prestate_teardown()

static int prestate_teardown ( void **  state)
static

Definition at line 45 of file test_fixtures.c.

References free.

Referenced by main().

◆ prestate_test()

static void prestate_test ( void **  state)
static

Definition at line 60 of file test_fixtures.c.

References assert_int_equal, and assert_non_null.

Referenced by main().

◆ setup_only()

static int setup_only ( void **  state)
static

Definition at line 8 of file test_fixtures.c.

References malloc.

Referenced by main().

◆ teardown_only()

static int teardown_only ( void **  state)
static

Definition at line 15 of file test_fixtures.c.

References free.

Referenced by main().