OpenVPN
|
#include "config.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <cmocka_private.h>
Go to the source code of this file.
Functions | |
static void | mock_test_a_called (void) |
static void | mock_test_b_called (void) |
static void | mock_test_c_called (void) |
static void | test_does_fail_for_unexpected_call (void **state) |
static void | test_does_fail_for_unmade_expected_call (void **state) |
static void | test_ordering_fails_out_of_order (void **state) |
static void | test_ordering_fails_out_of_order_for_at_least_once_calls (void **state) |
static void | test_fails_out_of_order_if_no_calls_found_on_any (void **state) |
static void | test_fails_if_zero_count_used (void **state) |
int | main (void) |
int main | ( | void | ) |
Definition at line 83 of file test_ordering_fail.c.
References cmocka_run_group_tests, cmocka_unit_test, test_does_fail_for_unexpected_call(), test_does_fail_for_unmade_expected_call(), test_fails_if_zero_count_used(), test_fails_out_of_order_if_no_calls_found_on_any(), test_ordering_fails_out_of_order(), and test_ordering_fails_out_of_order_for_at_least_once_calls().
|
static |
Definition at line 9 of file test_ordering_fail.c.
References function_called.
Referenced by test_does_fail_for_unexpected_call(), test_does_fail_for_unmade_expected_call(), test_fails_if_zero_count_used(), test_fails_out_of_order_if_no_calls_found_on_any(), test_ordering_fails_out_of_order(), and test_ordering_fails_out_of_order_for_at_least_once_calls().
|
static |
Definition at line 14 of file test_ordering_fail.c.
References function_called.
Referenced by test_fails_out_of_order_if_no_calls_found_on_any(), test_ordering_fails_out_of_order(), and test_ordering_fails_out_of_order_for_at_least_once_calls().
|
static |
Definition at line 19 of file test_ordering_fail.c.
References function_called.
Referenced by test_fails_out_of_order_if_no_calls_found_on_any(), and test_ordering_fails_out_of_order_for_at_least_once_calls().
|
static |
Definition at line 24 of file test_ordering_fail.c.
References expect_function_call, and mock_test_a_called().
Referenced by main().
|
static |
Definition at line 35 of file test_ordering_fail.c.
References expect_function_call, and mock_test_a_called().
Referenced by main().
|
static |
Definition at line 75 of file test_ordering_fail.c.
References expect_function_calls, and mock_test_a_called().
Referenced by main().
|
static |
Definition at line 65 of file test_ordering_fail.c.
References expect_function_call_any, ignore_function_calls, mock_test_a_called(), mock_test_b_called(), and mock_test_c_called().
Referenced by main().
|
static |
Definition at line 44 of file test_ordering_fail.c.
References expect_function_call, mock_test_a_called(), and mock_test_b_called().
Referenced by main().
|
static |
Definition at line 54 of file test_ordering_fail.c.
References expect_function_call_any, ignore_function_calls, mock_test_a_called(), mock_test_b_called(), and mock_test_c_called().
Referenced by main().