OpenVPN
Functions
waiter_test_wrap.c File Reference
#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"
Include dependency graph for waiter_test_wrap.c:

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)
 

Function Documentation

◆ __wrap_chef_cook()

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().

◆ main()

int main ( void  )

◆ test_bad_dish()

static void test_bad_dish ( void **  state)
static

◆ test_order_hotdog()

static void test_order_hotdog ( void **  state)
static

◆ waiter_process()

static int waiter_process ( const char *  order,
char **  dish 
)
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().