testing

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFilteredOpt added in v0.1.38

func AssertFilteredOpt(t *testing.T, opts godip.Options, filter string, order []string)

func AssertMove

func AssertMove(t *testing.T, j *state.State, src, dst godip.Province, success bool)

func AssertNoOpt

func AssertNoOpt(t *testing.T, opts godip.Options, order []string)

func AssertNoOptionToMoveTo

func AssertNoOptionToMoveTo(t *testing.T, j *state.State, nat godip.Nation, src godip.Province, dst godip.Province)

func AssertNoOwner

func AssertNoOwner(t *testing.T, j *state.State, supplyCenter string)

func AssertNoUnit

func AssertNoUnit(t *testing.T, j *state.State, province godip.Province)

func AssertOpt

func AssertOpt(t *testing.T, opts godip.Options, order []string)

func AssertOptionToMove

func AssertOptionToMove(t *testing.T, j *state.State, nat godip.Nation, src godip.Province, dst godip.Province)

func AssertOrderValidity

func AssertOrderValidity(t *testing.T, validator godip.Validator, order godip.Order, nat godip.Nation, err error)

func AssertOwner

func AssertOwner(t *testing.T, j *state.State, supplyCenter string, owner godip.Nation)

func AssertUnit

func AssertUnit(t *testing.T, j *state.State, province godip.Province, unit godip.Unit)

func PP added in v0.1.38

func PP(i interface{}) string

func TestGames

func TestGames(t *testing.T, variant common.Variant)

func WaitForPhases

func WaitForPhases(judge *state.State, phases int)

Wait for the given number of phases.

func WaitForYears

func WaitForYears(judge *state.State, years int)

Increase the current phase by the given number of years.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL