test

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHelloClientCheckGameEnds

func DefaultHelloClientCheckGameEnds(t *testing.T,
	msg map[string]interface{}, clientName string)

func DefaultHelloClientCheckGameStarts

func DefaultHelloClientCheckGameStarts(t *testing.T,
	msg map[string]interface{}, nbPlayers, nbSpecialPlayers, nbTurnsGL int,
	msBeforeFirstTurn, msBetweenTurns float64, isPlayer bool) int

func DefaultHelloClientCheckTurn

func DefaultHelloClientCheckTurn(t *testing.T, msg map[string]interface{},
	expectedNbPlayers, expectedNbSpecialPlayers, expectedTurnNumber int, isPlayer bool) int

func DefaultHelloClientTurnAck

func DefaultHelloClientTurnAck(turn, playerID int) string

func DefaultHelloGLCheckDoTurn

func DefaultHelloGLCheckDoTurn(t *testing.T, msg map[string]interface{},
	expectedNbPlayers, expectedNbSpecialPlayers, expectedTurnNumber int) []interface{}

func DefaultHelloGLDoInitAck

func DefaultHelloGLDoInitAck(nbPlayers, nbSpecialPlayers, nbTurns int) string

func DefaultHelloGlDoTurnAck

func DefaultHelloGlDoTurnAck(turn int, actions []interface{}) string

Types

type ClientGameEndsCheckFunc

type ClientGameEndsCheckFunc func(*testing.T, map[string]interface{}, string)

type ClientGameStartsCheckFunc

type ClientGameStartsCheckFunc func(*testing.T, map[string]interface{}, int,
	int, int, float64, float64, bool) int

type ClientTurnAckFunc

type ClientTurnAckFunc func(int, int) string

type ClientTurnCheckFunc

type ClientTurnCheckFunc func(*testing.T, map[string]interface{}, int, int, int,
	bool) int

type GLCheckDoTurnFunc

type GLCheckDoTurnFunc func(*testing.T, map[string]interface{},
	int, int, int) []interface{}

type GLDoInitAckFunc

type GLDoInitAckFunc func(int, int, int) string

type GLDoTurnAckFunc

type GLDoTurnAckFunc func(int, []interface{}) string

type NetorcaiProcess

type NetorcaiProcess struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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