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

Go to the source code of this file.

Functions

static END_TEST Suite * arch_suite (void)
 
int main (void)
 
static void setup (void)
 
 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_create_archetype_by_object_name)
 
END_TEST START_TEST (test_init_archetypes)
 
END_TEST START_TEST (test_clear_archetable)
 
END_TEST START_TEST (test_free_all_archs)
 
END_TEST START_TEST (test_get_archetype_struct)
 
END_TEST START_TEST (test_arch_to_object)
 
END_TEST START_TEST (test_create_singularity)
 
END_TEST START_TEST (test_create_archetype)
 
END_TEST START_TEST (test_find_archetype)
 
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 269 of file check_arch.c.

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 295 of file check_arch.c.

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.c.

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/14]

START_TEST ( test_find_archetype_by_object_name  )

Definition at line 49 of file check_arch.c.

References archt::clone, find_archetype_by_object_name(), and obj::name.

Here is the call graph for this function:

◆ START_TEST() [2/14]

END_TEST START_TEST ( test_find_archetype_by_object_type_name  )

Definition at line 69 of file check_arch.c.

References archt::clone, find_archetype_by_object_type_name(), obj::name, and obj::type.

Here is the call graph for this function:

◆ START_TEST() [3/14]

END_TEST START_TEST ( test_get_archetype_by_skill_name  )

Definition at line 88 of file check_arch.c.

References get_archetype_by_skill_name(), archt::name, SKILL, and SKILLSCROLL.

Here is the call graph for this function:

◆ START_TEST() [4/14]

END_TEST START_TEST ( test_get_archetype_by_type_subtype  )

Definition at line 103 of file check_arch.c.

References archt::clone, get_archetype_by_type_subtype(), archt::name, OBJECT_TYPE_MAX, SK_LITERACY, SKILL, obj::subtype, and obj::type.

Here is the call graph for this function:

◆ START_TEST() [5/14]

END_TEST START_TEST ( test_create_archetype_by_object_name  )

Definition at line 126 of file check_arch.c.

References ARCH_SINGULARITY, create_archetype_by_object_name(), and obj::name.

Here is the call graph for this function:

◆ START_TEST() [6/14]

END_TEST START_TEST ( test_init_archetypes  )

Definition at line 146 of file check_arch.c.

References find_archetype().

Here is the call graph for this function:

◆ START_TEST() [7/14]

END_TEST START_TEST ( test_clear_archetable  )

Definition at line 154 of file check_arch.c.

References clear_archetable().

Here is the call graph for this function:

◆ START_TEST() [8/14]

END_TEST START_TEST ( test_free_all_archs  )

Definition at line 159 of file check_arch.c.

References find_archetype(), free_all_archs(), and init_archetypes().

Here is the call graph for this function:

◆ START_TEST() [9/14]

END_TEST START_TEST ( test_get_archetype_struct  )

◆ START_TEST() [10/14]

END_TEST START_TEST ( test_arch_to_object  )

Definition at line 218 of file check_arch.c.

References arch_to_object(), and find_archetype().

Here is the call graph for this function:

◆ START_TEST() [11/14]

END_TEST START_TEST ( test_create_singularity  )

Definition at line 228 of file check_arch.c.

References create_singularity(), and obj::name.

Here is the call graph for this function:

◆ START_TEST() [12/14]

END_TEST START_TEST ( test_create_archetype  )

Definition at line 237 of file check_arch.c.

References create_archetype().

Here is the call graph for this function:

◆ START_TEST() [13/14]

END_TEST START_TEST ( test_find_archetype  )

Definition at line 245 of file check_arch.c.

References find_archetype().

Here is the call graph for this function:

◆ START_TEST() [14/14]

END_TEST START_TEST ( test_object_create_arch  )

Definition at line 257 of file check_arch.c.

References find_archetype(), obj::head, obj::more, 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.c.

Referenced by arch_suite().

Here is the caller graph for this function: