Crossfire Server, Trunk
check_treasure.c File Reference
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <toolkit_common.h>
+ Include dependency graph for check_treasure.c:

Go to the source code of this file.

Functions

int main (void)
 
static void setup (void)
 
 START_TEST (test_add_treasure_in_list)
 
END_TEST START_TEST (test_treasure_remove_item)
 
static void teardown (void)
 
static END_TEST Suite * treasure_suite (void)
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 105 of file check_treasure.c.

References treasure_suite().

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 38 of file check_treasure.c.

References cctk_setdatadir(), and cctk_setlog().

Referenced by treasure_suite().

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

◆ START_TEST() [1/2]

START_TEST ( test_add_treasure_in_list  )

Definition at line 49 of file check_treasure.c.

References guildoracle::list, treasurestruct::next, and treasure_insert().

+ Here is the call graph for this function:

◆ START_TEST() [2/2]

END_TEST START_TEST ( test_treasure_remove_item  )

Definition at line 73 of file check_treasure.c.

References guildoracle::list, treasurestruct::next, treasure_insert(), and treasure_remove_item().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 45 of file check_treasure.c.

Referenced by treasure_suite().

+ Here is the caller graph for this function:

◆ treasure_suite()

static END_TEST Suite* treasure_suite ( void  )
static

Definition at line 91 of file check_treasure.c.

References setup(), and teardown().

Referenced by main().

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