Crossfire Server, Trunk
check_account.c File Reference
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
#include <sproto.h>
#include <unistd.h>
#include <toolkit_server.h>
+ Include dependency graph for check_account.c:

Go to the source code of this file.

Functions

static END_TEST Suite * account_suite (void)
 
int main (void)
 
static void setup (void)
 
END_TEST START_TEST (test_account_add_account)
 
 START_TEST (test_account_check_string)
 
END_TEST START_TEST (test_account_load_entries)
 
static void teardown (void)
 

Function Documentation

◆ account_suite()

static END_TEST Suite* account_suite ( void  )
static

Definition at line 205 of file check_account.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 220 of file check_account.c.

References account_suite(), cctk_setdatadir(), clean_test_account_data(), Settings::debug, init(), Settings::localdir, settings, and strdup_local.

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 41 of file check_account.c.

Referenced by account_suite().

+ Here is the caller graph for this function:

◆ START_TEST() [1/3]

END_TEST START_TEST ( test_account_add_account  )

Definition at line 96 of file check_account.c.

References account_get_players_for_account(), account_link(), account_new(), accounts_save(), and guildbuy::names.

+ Here is the call graph for this function:

◆ START_TEST() [2/3]

START_TEST ( test_account_check_string  )

Definition at line 52 of file check_account.c.

References account_check_string(), and MAX_NAME.

+ Here is the call graph for this function:

◆ START_TEST() [3/3]

END_TEST START_TEST ( test_account_load_entries  )

Definition at line 144 of file check_account.c.

References account_exists(), account_get_players_for_account(), account_remove_player(), accounts_clear(), and accounts_load().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 44 of file check_account.c.

Referenced by account_suite().

+ Here is the caller graph for this function: