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

Go to the source code of this file.

Functions

int main (void)
 
END_TEST Suite * region_suite (void)
 
void setup (void)
 
END_TEST START_TEST (test_check_region_parent)
 
END_TEST START_TEST (test_get_by_name)
 
 START_TEST (test_get_by_unknown_name)
 
END_TEST START_TEST (test_get_region_from_string_empty)
 
END_TEST START_TEST (test_get_region_from_string_exact_long_name)
 
END_TEST START_TEST (test_get_region_from_string_exact_name)
 
END_TEST START_TEST (test_get_region_from_string_exact_name_wrong_case)
 
END_TEST START_TEST (test_get_region_from_string_partial_long_name)
 
END_TEST START_TEST (test_get_region_from_string_partial_name)
 
END_TEST START_TEST (test_get_region_is_child_of_region)
 
void teardown (void)
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 140 of file check_region.cpp.

References region_suite().

+ Here is the call graph for this function:

◆ region_suite()

END_TEST Suite* region_suite ( void  )

Definition at line 117 of file check_region.cpp.

References setup(), and teardown().

Referenced by main().

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

◆ setup()

void setup ( void  )

Definition at line 33 of file check_region.cpp.

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

Referenced by region_suite().

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

◆ START_TEST() [1/10]

END_TEST START_TEST ( test_check_region_parent  )

Definition at line 99 of file check_region.cpp.

References regiondef::fallback, get_region_from_string(), regiondef::name, and regiondef::parent.

+ Here is the call graph for this function:

◆ START_TEST() [2/10]

END_TEST START_TEST ( test_get_by_name  )

Definition at line 50 of file check_region.cpp.

References regiondef::fallback, and get_region_by_name().

+ Here is the call graph for this function:

◆ START_TEST() [3/10]

START_TEST ( test_get_by_unknown_name  )

Definition at line 43 of file check_region.cpp.

References regiondef::fallback, and get_region_by_name().

+ Here is the call graph for this function:

◆ START_TEST() [4/10]

END_TEST START_TEST ( test_get_region_from_string_empty  )

Definition at line 57 of file check_region.cpp.

References get_region_from_string(), and regiondef::parent.

+ Here is the call graph for this function:

◆ START_TEST() [5/10]

END_TEST START_TEST ( test_get_region_from_string_exact_long_name  )

Definition at line 85 of file check_region.cpp.

References regiondef::fallback, and get_region_from_string().

+ Here is the call graph for this function:

◆ START_TEST() [6/10]

END_TEST START_TEST ( test_get_region_from_string_exact_name  )

Definition at line 64 of file check_region.cpp.

References regiondef::fallback, and get_region_from_string().

+ Here is the call graph for this function:

◆ START_TEST() [7/10]

END_TEST START_TEST ( test_get_region_from_string_exact_name_wrong_case  )

Definition at line 71 of file check_region.cpp.

References regiondef::fallback, and get_region_from_string().

+ Here is the call graph for this function:

◆ START_TEST() [8/10]

END_TEST START_TEST ( test_get_region_from_string_partial_long_name  )

Definition at line 92 of file check_region.cpp.

References regiondef::fallback, and get_region_from_string().

+ Here is the call graph for this function:

◆ START_TEST() [9/10]

END_TEST START_TEST ( test_get_region_from_string_partial_name  )

Definition at line 78 of file check_region.cpp.

References regiondef::fallback, and get_region_from_string().

+ Here is the call graph for this function:

◆ START_TEST() [10/10]

END_TEST START_TEST ( test_get_region_is_child_of_region  )

Definition at line 110 of file check_region.cpp.

References get_region_from_string(), and region_is_child_of_region().

+ Here is the call graph for this function:

◆ teardown()

void teardown ( void  )

Definition at line 39 of file check_region.cpp.

Referenced by region_suite().

+ Here is the caller graph for this function: