Crossfire Server, Trunk
|
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <assert.h>
#include <toolkit_common.h>
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) |
int main | ( | void | ) |
Definition at line 140 of file check_region.cpp.
References region_suite().
END_TEST Suite* region_suite | ( | void | ) |
Definition at line 117 of file check_region.cpp.
References setup(), and teardown().
Referenced by main().
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().
END_TEST START_TEST | ( | test_check_region_parent | ) |
Definition at line 99 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, get_region_from_string(), region::name, and region::parent.
END_TEST START_TEST | ( | test_get_by_name | ) |
Definition at line 50 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_by_name().
START_TEST | ( | test_get_by_unknown_name | ) |
Definition at line 43 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_by_name().
END_TEST START_TEST | ( | test_get_region_from_string_empty | ) |
Definition at line 57 of file check_region.cpp.
References FAIL_UNLESS, get_region_from_string(), and region::parent.
END_TEST START_TEST | ( | test_get_region_from_string_exact_long_name | ) |
Definition at line 85 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_from_string().
END_TEST START_TEST | ( | test_get_region_from_string_exact_name | ) |
Definition at line 64 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_from_string().
END_TEST START_TEST | ( | test_get_region_from_string_exact_name_wrong_case | ) |
Definition at line 71 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_from_string().
END_TEST START_TEST | ( | test_get_region_from_string_partial_long_name | ) |
Definition at line 92 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_from_string().
END_TEST START_TEST | ( | test_get_region_from_string_partial_name | ) |
Definition at line 78 of file check_region.cpp.
References FAIL_UNLESS, region::fallback, and get_region_from_string().
END_TEST START_TEST | ( | test_get_region_is_child_of_region | ) |
Definition at line 110 of file check_region.cpp.
References FAIL_UNLESS, get_region_from_string(), and region_is_child_of_region().
void teardown | ( | void | ) |
Definition at line 39 of file check_region.cpp.
Referenced by region_suite().