Angband
Functions | Variables
monster/attack.c File Reference
#include "unit-test.h"
#include "unit-test-data.h"
#include "mon-attack.h"
#include "mon-lore.h"
#include "monster.h"
#include "option.h"
#include "player-timed.h"
#include "ui-input.h"

Functions

int setup_tests (void **state)
 
int teardown_tests (void *state)
 
static int mdam (struct monster *m)
 
static int take1 (struct player *p, struct monster *m, struct blow_method *blow, struct blow_effect *eff)
 
static int test_blows (void *state)
 
static int test_effects (void *state)
 

Variables

const char * suite_name = "monster/attack"
 
const struct test tests []
 

Function Documentation

◆ mdam()

static int mdam ( struct monster m)
static

◆ setup_tests()

int setup_tests ( void **  state)

◆ take1()

static int take1 ( struct player p,
struct monster m,
struct blow_method blow,
struct blow_effect eff 
)
static

◆ teardown_tests()

int teardown_tests ( void state)

References mem_free(), and z_info.

◆ test_blows()

static int test_blows ( void state)
static

◆ test_effects()

static int test_effects ( void state)
static

Variable Documentation

◆ suite_name

const char* suite_name = "monster/attack"

◆ tests

const struct test tests[]
Initial value:
= {
{ "blows", test_blows },
{ "effects", test_effects },
{ NULL, NULL },
}
static int test_effects(void *state)
Definition: monster/attack.c:73
static int test_blows(void *state)
Definition: monster/attack.c:55
NULL
Definition: list-summon-types.h:18