Crossfire Server, Trunk
|
#include <stdlib.h>
#include <string.h>
#include <check.h>
#include "global.h"
#include "toolkit_common.h"
Go to the source code of this file.
Functions | |
int | main (void) |
static void | setup (void) |
static END_TEST Suite * | shstr_suite (void) |
END_TEST | START_TEST (test_add_refcount) |
START_TEST (test_add_string) | |
END_TEST | START_TEST (test_buf_overflow) |
END_TEST | START_TEST (test_find_string) |
END_TEST | START_TEST (test_free_string) |
END_TEST | START_TEST (test_query_refcount) |
static void | teardown (void) |
int main | ( | void | ) |
Definition at line 174 of file check_shstr.cpp.
References shstr_suite().
|
static |
Definition at line 48 of file check_shstr.cpp.
References init_hash_table().
Referenced by shstr_suite().
|
static |
Definition at line 156 of file check_shstr.cpp.
References setup(), and teardown().
Referenced by main().
END_TEST START_TEST | ( | test_add_refcount | ) |
Definition at line 76 of file check_shstr.cpp.
References add_refcount(), add_string(), FAIL_UNLESS, and query_refcount().
START_TEST | ( | test_add_string | ) |
Definition at line 56 of file check_shstr.cpp.
References add_string(), FAIL_UNLESS, and guildbuy::temp.
END_TEST START_TEST | ( | test_buf_overflow | ) |
Definition at line 140 of file check_shstr.cpp.
References buf_overflow(), and FAIL_UNLESS.
END_TEST START_TEST | ( | test_find_string | ) |
Definition at line 99 of file check_shstr.cpp.
References add_string(), FAIL_UNLESS, find_string(), free_string(), and rotate-tower::result.
END_TEST START_TEST | ( | test_free_string | ) |
Definition at line 121 of file check_shstr.cpp.
References add_string(), FAIL_UNLESS, find_string(), and free_string().
END_TEST START_TEST | ( | test_query_refcount | ) |
Definition at line 87 of file check_shstr.cpp.
References add_refcount(), add_string(), FAIL_UNLESS, and query_refcount().
|
static |
Definition at line 52 of file check_shstr.cpp.
Referenced by shstr_suite().