Angband
Functions | Variables
a-info.c File Reference
#include "unit-test.h"
#include "unit-test-data.h"
#include "obj-tval.h"
#include "object.h"
#include "init.h"

Functions

int setup_tests (void **state)
 
int teardown_tests (void *state)
 
int test_name0 (void *state)
 
int test_badtval0 (void *state)
 
int test_badtval1 (void *state)
 
int test_base_object0 (void *state)
 
int test_info0 (void *state)
 
int test_alloc0 (void *state)
 
int test_alloc1 (void *state)
 
int test_alloc2 (void *state)
 
int test_power0 (void *state)
 
int test_flags0 (void *state)
 
int test_values0 (void *state)
 
int test_time0 (void *state)
 
int test_msg0 (void *state)
 
int test_desc0 (void *state)
 

Variables

const char * suite_name = "parse/a-info"
 
struct test tests []
 

Function Documentation

◆ setup_tests()

int setup_tests ( void **  state)

References init_parse_artifact().

◆ teardown_tests()

int teardown_tests ( void state)

References parser_destroy().

◆ test_alloc0()

int test_alloc0 ( void state)

References eq, ok, and parser_parse().

◆ test_alloc1()

int test_alloc1 ( void state)

References eq, ok, and parser_parse().

◆ test_alloc2()

int test_alloc2 ( void state)

◆ test_badtval0()

int test_badtval0 ( void state)

References eq, ok, and parser_parse().

◆ test_badtval1()

int test_badtval1 ( void state)

References eq, ok, and parser_parse().

◆ test_base_object0()

int test_base_object0 ( void state)

◆ test_desc0()

int test_desc0 ( void state)

◆ test_flags0()

int test_flags0 ( void state)

◆ test_info0()

int test_info0 ( void state)

◆ test_msg0()

int test_msg0 ( void state)

◆ test_name0()

int test_name0 ( void state)

◆ test_power0()

int test_power0 ( void state)

◆ test_time0()

int test_time0 ( void state)

◆ test_values0()

int test_values0 ( void state)

Variable Documentation

◆ suite_name

const char* suite_name = "parse/a-info"

◆ tests

struct test tests[]
Initial value:
= {
{ "name0", test_name0 },
{ "badtval0", test_badtval0 },
{ "badtval1", test_badtval1 },
{ "base-object0", test_base_object0 },
{ "alloc0", test_alloc0 },
{ "alloc1", test_alloc1 },
{ "alloc2", test_alloc2 },
{ "power0", test_power0 },
{ "flags0", test_flags0 },
{ "msg0", test_msg0 },
{ "desc0", test_desc0 },
{ "values0", test_values0 },
{ NULL, NULL }
}
int test_alloc1(void *state)
Definition: a-info.c:74
int test_msg0(void *state)
Definition: a-info.c:144
int test_badtval1(void *state)
Definition: a-info.c:36
int test_flags0(void *state)
Definition: a-info.c:109
int test_alloc0(void *state)
Definition: a-info.c:68
int test_power0(void *state)
Definition: a-info.c:93
int test_alloc2(void *state)
Definition: a-info.c:80
int test_values0(void *state)
Definition: a-info.c:120
int test_name0(void *state)
Definition: a-info.c:19
int test_badtval0(void *state)
Definition: a-info.c:30
int test_base_object0(void *state)
Definition: a-info.c:42
NULL
Definition: list-summon-types.h:18
int test_desc0(void *state)
Definition: a-info.c:158