|
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_maybe_for_no_calls (void **state) |
| static void | test_will_return_maybe_for_one_mock_call (void **state) |
| static void | test_will_return_maybe_for_more_than_one_call (void **state) |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 58 of file test_returns.c.
References cmocka_run_group_tests, cmocka_unit_test, test_will_return_maybe_for_more_than_one_call(), test_will_return_maybe_for_no_calls(), and test_will_return_maybe_for_one_mock_call().
| int mock_function | ( | void | ) |
Definition at line 14 of file test_returns.c.
References mock.
Referenced by mock_function_call_times(), test_will_return_maybe_for_more_than_one_call(), test_will_return_maybe_for_no_calls(), and test_will_return_maybe_for_one_mock_call().
| void mock_function_call_times | ( | size_t | times, |
| int | expectedValue | ||
| ) |
Definition at line 19 of file test_returns.c.
References assert_int_equal, and mock_function().
Referenced by test_will_return_maybe_for_more_than_one_call(), and test_will_return_maybe_for_one_mock_call().
|
static |
Definition at line 46 of file test_returns.c.
References mock_function(), mock_function_call_times(), and will_return_maybe.
Referenced by main().
|
static |
Definition at line 28 of file test_returns.c.
References mock_function(), and will_return_maybe.
Referenced by main().
|
static |
Definition at line 35 of file test_returns.c.
References mock_function(), mock_function_call_times(), and will_return_maybe.
Referenced by main().
1.8.13