OpenVPN
|
#include "config.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <cmocka_private.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
int | mock_function (void) |
void | mock_function_call_times (size_t times, int expectedValue) |
static void | test_will_return_fails_for_no_calls (void **state) |
static void | test_will_return_count_fails_for_unreturned_items (void **state) |
static void | test_will_return_always_fails_for_no_calls (void **state) |
static int | teardown (void **state) |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 66 of file test_returns_fail.c.
References cmocka_run_group_tests, cmocka_unit_test_teardown, teardown(), test_will_return_always_fails_for_no_calls(), test_will_return_count_fails_for_unreturned_items(), and test_will_return_fails_for_no_calls().
int mock_function | ( | void | ) |
Definition at line 14 of file test_returns_fail.c.
References mock.
Referenced by mock_function_call_times(), test_will_return_always_fails_for_no_calls(), test_will_return_count_fails_for_unreturned_items(), and test_will_return_fails_for_no_calls().
void mock_function_call_times | ( | size_t | times, |
int | expectedValue | ||
) |
Definition at line 19 of file test_returns_fail.c.
References assert_int_equal, and mock_function().
Referenced by test_will_return_count_fails_for_unreturned_items().
|
static |
|
static |
Definition at line 49 of file test_returns_fail.c.
References mock_function(), and will_return_always.
Referenced by main().
|
static |
Definition at line 35 of file test_returns_fail.c.
References mock_function(), mock_function_call_times(), and will_return_count.
Referenced by main().
|
static |
Definition at line 28 of file test_returns_fail.c.
References mock_function(), and will_return.
Referenced by main().