OpenVPN
Functions
test.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <cmocka.h>
Include dependency graph for test.c:

Go to the source code of this file.

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)
 
static void failing_test (void **state)
 
int main (void)
 

Function Documentation

◆ failing_test()

static void failing_test ( void **  state)
static

Definition at line 38 of file test.c.

References assert_int_equal.

◆ int_test_success()

static void int_test_success ( void **  state)
static

Definition at line 32 of file test.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 27 of file test.c.

Referenced by main().

◆ setup()

static int setup ( void **  state)
static

Definition at line 10 of file test.c.

References malloc.

Referenced by _run_group_tests(), and main().

◆ teardown()

static int teardown ( void **  state)
static

Definition at line 20 of file test.c.

References free.

Referenced by _run_group_tests(), and main().