Angband
Functions | Variables
unit-test.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "unit-test-types.h"
#include "z-util.h"

Functions

int setup_tests (void **data)
 
int teardown_tests (void *data)
 
int main (int argc, char *argv[])
 
int showpass (void)
 
int showfail (void)
 

Variables

int verbose = 0
 
const char * suite_name
 
struct test tests []
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ setup_tests()

int setup_tests ( void **  data)

References object_kind::alloc_max, object_kind::alloc_min, object_kind::alloc_prob, player::body, ca, cb, cc, cmd_init(), angband_constants::default_lamp, angband_constants::e_max, ea0, ea1, eb0, eb1, ec0, ec1, history_chart::entries, event_add_handler(), EVENT_INITSTATUS, event_message(), EVENT_MESSAGE, alloc_test_state::expected, angband_constants::fuel_lamp, angband_constants::fuel_torch, angband_constants::great_obj, alloc_test_state::histogram, init_module::init, init_angband(), init_graphics_modes(), init_parse_artifact(), init_parse_class(), init_parse_constants(), init_parse_ego(), init_parse_feat(), init_parse_flavor(), init_parse_history(), init_parse_monster(), init_parse_names(), init_parse_object(), init_parse_p_race(), init_parse_stores(), init_parse_vault(), k_info, angband_constants::k_max, kf_on, kind_flags, angband_constants::max_obj_depth, angband_constants::max_sight, mem_alloc(), mem_zalloc(), messages_init(), angband_constants::mon_blows_max, history_entry::next, NOTEARDOWN, obj_make_module, ok, p, angband_constants::pack_size, parser_new(), player_init(), plog_aux, println(), projections, quarks_init(), angband_constants::quest_max, quests, angband_constants::quiver_size, r_info, monster::race, rand_fix(), read_edit_files(), history_entry::roll, set_file_paths(), setup_event_handlers(), player_body::slots, angband_constants::store_inven_max, history_entry::succ, test_player, test_player_body, test_projections, test_quest, test_r_human, test_slot_light, test_torch, history_entry::text, textui_input_init(), textui_prefs_init(), object_kind::tval, and z_info.

Referenced by main().

◆ showfail()

int showfail ( void  )

References verbose.

◆ showpass()

int showpass ( void  )

References verbose.

◆ teardown_tests()

int teardown_tests ( void data)

Variable Documentation

◆ suite_name

const char* suite_name

Referenced by main().

◆ tests

struct test tests[]

Referenced by main(), and test_get_obj_num_basic().

◆ verbose

int verbose = 0

Referenced by main(), showfail(), and showpass().