Crossfire Server, Trunk
check_time.cpp File Reference
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <libproto.h>
#include "tod.h"
#include <toolkit_common.h>
+ Include dependency graph for check_time.cpp:

Go to the source code of this file.

Functions

int main (void)
 
static void setup (void)
 
 START_TEST (test_get_month_name)
 
END_TEST START_TEST (test_get_season_name)
 
END_TEST START_TEST (test_get_weekday)
 
static void teardown (void)
 
static END_TEST Suite * time_suite (void)
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 89 of file check_time.cpp.

References time_suite().

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 40 of file check_time.cpp.

References cctk_setdatadir(), and reset_sleep().

Referenced by time_suite().

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

◆ START_TEST() [1/3]

START_TEST ( test_get_month_name  )

Definition at line 51 of file check_time.cpp.

References FAIL_UNLESS, get_month_name(), and MONTHS_PER_YEAR.

+ Here is the call graph for this function:

◆ START_TEST() [2/3]

END_TEST START_TEST ( test_get_season_name  )

Definition at line 65 of file check_time.cpp.

References FAIL_UNLESS, get_season_name(), and SEASONS_PER_YEAR.

+ Here is the call graph for this function:

◆ START_TEST() [3/3]

END_TEST START_TEST ( test_get_weekday  )

Definition at line 58 of file check_time.cpp.

References DAYS_PER_WEEK, FAIL_UNLESS, and get_weekday().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 47 of file check_time.cpp.

Referenced by time_suite().

+ Here is the caller graph for this function:

◆ time_suite()

static END_TEST Suite* time_suite ( void  )
static

Definition at line 74 of file check_time.cpp.

References setup(), and teardown().

Referenced by main().

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