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

Go to the source code of this file.

Macros

#define UNIT_TESTING   1
 

Functions

static int setup (void **state)
 
static int teardown (void **state)
 
static void null_test_success (void **state)
 
static void int_test_success (void **state)
 
int main (void)
 

Macro Definition Documentation

◆ UNIT_TESTING

#define UNIT_TESTING   1

Definition at line 18 of file test_basics.c.

Function Documentation

◆ int_test_success()

static void int_test_success ( void **  state)
static

Definition at line 48 of file test_basics.c.

References assert_int_equal.

Referenced by main().

◆ main()

int main ( void  )

◆ null_test_success()

static void null_test_success ( void **  state)
static

Definition at line 43 of file test_basics.c.

Referenced by main().

◆ setup()

static int setup ( void **  state)
static

Definition at line 25 of file test_basics.c.

References assert_non_null, and malloc.

Referenced by main().

◆ teardown()

static int teardown ( void **  state)
static

Definition at line 36 of file test_basics.c.

References free.

Referenced by main().