OpenVPN
|
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include "waiter_test_wrap.h"
#include "chef.h"
Go to the source code of this file.
Functions | |
int | __wrap_chef_cook (const char *order, char **dish_out) |
static int | waiter_process (const char *order, char **dish) |
static void | test_order_hotdog (void **state) |
static void | test_bad_dish (void **state) |
int | main (void) |
int __wrap_chef_cook | ( | const char * | order, |
char ** | dish_out | ||
) |
Definition at line 57 of file waiter_test_wrap.c.
References check_expected_ptr, mock_ptr_type, and mock_type.
Referenced by test_bad_dish(), and test_order_hotdog().
int main | ( | void | ) |
Definition at line 168 of file waiter_test_wrap.c.
References cmocka_run_group_tests, cmocka_unit_test, test_bad_dish(), and test_order_hotdog().
|
static |
Definition at line 138 of file waiter_test_wrap.c.
References __wrap_chef_cook(), assert_int_equal, assert_null, cast_ptr_to_largest_integral_type, expect_string, waiter_process(), and will_return.
Referenced by main().
|
static |
Definition at line 108 of file waiter_test_wrap.c.
References __wrap_chef_cook(), assert_int_equal, assert_string_equal, cast_ptr_to_largest_integral_type, expect_string, free, waiter_process(), and will_return.
Referenced by main().
|
static |
Definition at line 87 of file waiter_test_wrap.c.
References chef_cook(), chef_strerror(), and free.
Referenced by test_bad_dish(), and test_order_hotdog().