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

Go to the source code of this file.

Functions

static END_TEST Suite * arch_suite (void)
 
int main (void)
 
static void setup (void)
 
END_TEST START_TEST (test_arch_to_object)
 
END_TEST START_TEST (test_create_archetype)
 
END_TEST START_TEST (test_create_archetype_by_object_name)
 
END_TEST START_TEST (test_create_singularity)
 
END_TEST START_TEST (test_find_archetype)
 
 START_TEST (test_find_archetype_by_object_name)
 
END_TEST START_TEST (test_find_archetype_by_object_type_name)
 
END_TEST START_TEST (test_get_archetype_by_skill_name)
 
END_TEST START_TEST (test_get_archetype_by_type_subtype)
 
END_TEST START_TEST (test_get_archetype_struct)
 
END_TEST START_TEST (test_init_archetypes)
 
END_TEST START_TEST (test_object_create_arch)
 
static void teardown (void)
 

Function Documentation

◆ arch_suite()

static END_TEST Suite* arch_suite ( void  )
static

Definition at line 250 of file check_arch.cpp.

References setup(), and teardown().

Referenced by main().

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

◆ main()

int main ( void  )

Definition at line 275 of file check_arch.cpp.

References arch_suite().

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 39 of file check_arch.cpp.

References cctk_init_std_archetypes(), cctk_setdatadir(), and cctk_setlog().

Referenced by arch_suite().

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

◆ START_TEST() [1/12]

END_TEST START_TEST ( test_arch_to_object  )

Definition at line 199 of file check_arch.cpp.

References archininventory::arch, arch_to_object(), FAIL_UNLESS, find_archetype(), and altar_valkyrie::obj.

+ Here is the call graph for this function:

◆ START_TEST() [2/12]

END_TEST START_TEST ( test_create_archetype  )

Definition at line 218 of file check_arch.cpp.

References create_archetype(), FAIL_UNLESS, and altar_valkyrie::obj.

+ Here is the call graph for this function:

◆ START_TEST() [3/12]

END_TEST START_TEST ( test_create_archetype_by_object_name  )

Definition at line 126 of file check_arch.cpp.

References ARCH_SINGULARITY, create_archetype_by_object_name(), FAIL_UNLESS, and guildjoin::ob.

+ Here is the call graph for this function:

◆ START_TEST() [4/12]

END_TEST START_TEST ( test_create_singularity  )

Definition at line 209 of file check_arch.cpp.

References create_singularity(), FAIL_UNLESS, and altar_valkyrie::obj.

+ Here is the call graph for this function:

◆ START_TEST() [5/12]

END_TEST START_TEST ( test_find_archetype  )

Definition at line 226 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, and find_archetype().

+ Here is the call graph for this function:

◆ START_TEST() [6/12]

START_TEST ( test_find_archetype_by_object_name  )

Definition at line 49 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, and find_archetype_by_object_name().

+ Here is the call graph for this function:

◆ START_TEST() [7/12]

END_TEST START_TEST ( test_find_archetype_by_object_type_name  )

Definition at line 69 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, and find_archetype_by_object_type_name().

+ Here is the call graph for this function:

◆ START_TEST() [8/12]

END_TEST START_TEST ( test_get_archetype_by_skill_name  )

Definition at line 90 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, get_archetype_by_skill_name(), SKILL, and SKILLSCROLL.

+ Here is the call graph for this function:

◆ START_TEST() [9/12]

END_TEST START_TEST ( test_get_archetype_by_type_subtype  )

Definition at line 105 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, get_archetype_by_type_subtype(), OBJECT_TYPE_MAX, SK_LITERACY, and SKILL.

+ Here is the call graph for this function:

◆ START_TEST() [10/12]

END_TEST START_TEST ( test_get_archetype_struct  )

Definition at line 154 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, and get_archetype_struct().

+ Here is the call graph for this function:

◆ START_TEST() [11/12]

END_TEST START_TEST ( test_init_archetypes  )

Definition at line 146 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, and find_archetype().

+ Here is the call graph for this function:

◆ START_TEST() [12/12]

END_TEST START_TEST ( test_object_create_arch  )

Definition at line 238 of file check_arch.cpp.

References archininventory::arch, FAIL_UNLESS, find_archetype(), altar_valkyrie::obj, and object_create_arch().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 45 of file check_arch.cpp.

Referenced by arch_suite().

+ Here is the caller graph for this function: