Crossfire Server, Trunk
check_utils.cpp File Reference
#include <check.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "global.h"
#include "toolkit_common.h"
+ Include dependency graph for check_utils.cpp:

Go to the source code of this file.

Functions

static void check_split_string (const char *str, size_t array_size,...)
 
int main (void)
 
static void setup (void)
 
END_TEST START_TEST (test_replace)
 
 START_TEST (test_split_string)
 
static void teardown (void)
 
static END_TEST Suite * utils_suite (void)
 

Function Documentation

◆ check_split_string()

static void check_split_string ( const char *  str,
size_t  array_size,
  ... 
)
static

Definition at line 50 of file check_utils.cpp.

References FAIL, FAIL_IF, rotate-tower::result, split_string(), make_face_from_files::str, and Ice::tmp.

Referenced by START_TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 135 of file check_utils.cpp.

References utils_suite().

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 42 of file check_utils.cpp.

Referenced by utils_suite().

+ Here is the caller graph for this function:

◆ START_TEST() [1/2]

END_TEST START_TEST ( test_replace  )

Definition at line 103 of file check_utils.cpp.

References FAIL_IF, init(), MAX_BUF, and replace().

+ Here is the call graph for this function:

◆ START_TEST() [2/2]

START_TEST ( test_split_string  )

Definition at line 81 of file check_utils.cpp.

References check_split_string().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 46 of file check_utils.cpp.

Referenced by utils_suite().

+ Here is the caller graph for this function:

◆ utils_suite()

static END_TEST Suite* utils_suite ( void  )
static

Definition at line 121 of file check_utils.cpp.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: