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

Go to the source code of this file.

Macros

#define UNIT_TESTING   1
 

Functions

static int group_setup (void **state)
 
static int group_teardown (void **state)
 
static void test_value_equal (void **state)
 
static void test_value_range (void **state)
 
int main (void)
 

Macro Definition Documentation

◆ UNIT_TESTING

#define UNIT_TESTING   1

Definition at line 2 of file test_group_fixtures.c.

Function Documentation

◆ group_setup()

static int group_setup ( void **  state)
static

Definition at line 9 of file test_group_fixtures.c.

References assert_non_null, and malloc.

Referenced by main().

◆ group_teardown()

static int group_teardown ( void **  state)
static

Definition at line 19 of file test_group_fixtures.c.

References free.

Referenced by main().

◆ main()

int main ( void  )

◆ test_value_equal()

static void test_value_equal ( void **  state)
static

Definition at line 27 of file test_group_fixtures.c.

References assert_int_equal.

Referenced by main().

◆ test_value_range()

static void test_value_range ( void **  state)
static

Definition at line 34 of file test_group_fixtures.c.

References assert_in_range.

Referenced by main().