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

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)
 

Function Documentation

◆ main()

int main ( void  )

◆ mock_test_a_called()

static void mock_test_a_called ( void  )
static

◆ mock_test_b_called()

static void mock_test_b_called ( void  )
static

◆ mock_test_c_called()

static void mock_test_c_called ( void  )
static

◆ test_does_fail_for_unexpected_call()

static void test_does_fail_for_unexpected_call ( void **  state)
static

Definition at line 24 of file test_ordering_fail.c.

References expect_function_call, and mock_test_a_called().

Referenced by main().

◆ test_does_fail_for_unmade_expected_call()

static void test_does_fail_for_unmade_expected_call ( void **  state)
static

Definition at line 35 of file test_ordering_fail.c.

References expect_function_call, and mock_test_a_called().

Referenced by main().

◆ test_fails_if_zero_count_used()

static void test_fails_if_zero_count_used ( void **  state)
static

Definition at line 75 of file test_ordering_fail.c.

References expect_function_calls, and mock_test_a_called().

Referenced by main().

◆ test_fails_out_of_order_if_no_calls_found_on_any()

static void test_fails_out_of_order_if_no_calls_found_on_any ( void **  state)
static

◆ test_ordering_fails_out_of_order()

static void test_ordering_fails_out_of_order ( void **  state)
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().

◆ test_ordering_fails_out_of_order_for_at_least_once_calls()

static void test_ordering_fails_out_of_order_for_at_least_once_calls ( void **  state)
static