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

Go to the source code of this file.

Functions

void increment_value (int *const value)
 
static void increment_value_fail (void **state)
 
static void increment_value_assert (void **state)
 
static void decrement_value_fail (void **state)
 
int main (void)
 

Function Documentation

◆ decrement_value_fail()

static void decrement_value_fail ( void **  state)
static

Definition at line 43 of file assert_module_test.c.

References decrement_value(), and expect_assert_failure.

Referenced by main().

◆ increment_value()

void increment_value ( int *const  value)

Definition at line 29 of file assert_module.c.

Referenced by increment_value_assert(), and increment_value_fail().

◆ increment_value_assert()

static void increment_value_assert ( void **  state)
static

Definition at line 35 of file assert_module_test.c.

References expect_assert_failure, and increment_value().

Referenced by main().

◆ increment_value_fail()

static void increment_value_fail ( void **  state)
static

Definition at line 27 of file assert_module_test.c.

References increment_value().

Referenced by main().

◆ main()

int main ( void  )