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

Go to the source code of this file.

Macros

#define UNIT_TESTING   1
 

Functions

static int setup_fail (void **state)
 
static void int_test_ignored (void **state)
 
static int setup_ok (void **state)
 
static void int_test_success (void **state)
 
static int teardown (void **state)
 
int main (void)
 

Macro Definition Documentation

◆ UNIT_TESTING

#define UNIT_TESTING   1

Definition at line 1 of file test_setup_fail.c.

Function Documentation

◆ int_test_ignored()

static void int_test_ignored ( void **  state)
static

Definition at line 15 of file test_setup_fail.c.

References assert_non_null.

Referenced by main().

◆ int_test_success()

static void int_test_success ( void **  state)
static

Definition at line 35 of file test_setup_fail.c.

References assert_int_equal.

Referenced by main().

◆ main()

int main ( void  )

◆ setup_fail()

static int setup_fail ( void **  state)
static

Definition at line 8 of file test_setup_fail.c.

Referenced by main().

◆ setup_ok()

static int setup_ok ( void **  state)
static

Definition at line 20 of file test_setup_fail.c.

References malloc.

Referenced by main().

◆ teardown()

static int teardown ( void **  state)
static

Definition at line 41 of file test_setup_fail.c.

References free.

Referenced by main().