Documentation ¶
Index ¶
- type BoardController
- type BoardController_Expecter
- type BoardController_GetBoardState_Call
- func (_c *BoardController_GetBoardState_Call) Return(_a0 messaging.BoardState, _a1 error) *BoardController_GetBoardState_Call
- func (_c *BoardController_GetBoardState_Call) Run(run func(_a0 ctx.GameContext)) *BoardController_GetBoardState_Call
- func (_c *BoardController_GetBoardState_Call) RunAndReturn(run func(ctx.GameContext) (messaging.BoardState, error)) *BoardController_GetBoardState_Call
- type GameController
- type GameController_CreateGame_Call
- func (_c *GameController_CreateGame_Call) Return(_a0 int64, _a1 error) *GameController_CreateGame_Call
- func (_c *GameController_CreateGame_Call) Run(run func(_a0 ctx.UserContext, _a1 request.CreateGame)) *GameController_CreateGame_Call
- func (_c *GameController_CreateGame_Call) RunAndReturn(run func(ctx.UserContext, request.CreateGame) (int64, error)) *GameController_CreateGame_Call
- type GameController_Expecter
- type MoveController
- func (_m *MoveController) EXPECT() *MoveController_Expecter
- func (_m *MoveController) PerformAttackMove(_a0 ctx.GameContext, attackMove request.AttackMove) error
- func (_m *MoveController) PerformConquerMove(_a0 ctx.GameContext, conquerMove request.ConquerMove) error
- func (_m *MoveController) PerformDeployMove(_a0 ctx.GameContext, deployMove request.DeployMove) error
- type MoveController_Expecter
- func (_e *MoveController_Expecter) PerformAttackMove(_a0 interface{}, attackMove interface{}) *MoveController_PerformAttackMove_Call
- func (_e *MoveController_Expecter) PerformConquerMove(_a0 interface{}, conquerMove interface{}) *MoveController_PerformConquerMove_Call
- func (_e *MoveController_Expecter) PerformDeployMove(_a0 interface{}, deployMove interface{}) *MoveController_PerformDeployMove_Call
- type MoveController_PerformAttackMove_Call
- func (_c *MoveController_PerformAttackMove_Call) Return(_a0 error) *MoveController_PerformAttackMove_Call
- func (_c *MoveController_PerformAttackMove_Call) Run(run func(_a0 ctx.GameContext, attackMove request.AttackMove)) *MoveController_PerformAttackMove_Call
- func (_c *MoveController_PerformAttackMove_Call) RunAndReturn(run func(ctx.GameContext, request.AttackMove) error) *MoveController_PerformAttackMove_Call
- type MoveController_PerformConquerMove_Call
- func (_c *MoveController_PerformConquerMove_Call) Return(_a0 error) *MoveController_PerformConquerMove_Call
- func (_c *MoveController_PerformConquerMove_Call) Run(run func(_a0 ctx.GameContext, conquerMove request.ConquerMove)) *MoveController_PerformConquerMove_Call
- func (_c *MoveController_PerformConquerMove_Call) RunAndReturn(run func(ctx.GameContext, request.ConquerMove) error) *MoveController_PerformConquerMove_Call
- type MoveController_PerformDeployMove_Call
- func (_c *MoveController_PerformDeployMove_Call) Return(_a0 error) *MoveController_PerformDeployMove_Call
- func (_c *MoveController_PerformDeployMove_Call) Run(run func(_a0 ctx.GameContext, deployMove request.DeployMove)) *MoveController_PerformDeployMove_Call
- func (_c *MoveController_PerformDeployMove_Call) RunAndReturn(run func(ctx.GameContext, request.DeployMove) error) *MoveController_PerformDeployMove_Call
- type PhaseController
- func (_m *PhaseController) EXPECT() *PhaseController_Expecter
- func (_m *PhaseController) GetAttackPhaseState(_a0 ctx.GameContext, game *state.Game) (messaging.GameState[messaging.EmptyState], error)
- func (_m *PhaseController) GetConquerPhaseState(_a0 ctx.GameContext, game *state.Game) (messaging.GameState[messaging.ConquerPhaseState], error)
- func (_m *PhaseController) GetDeployPhaseState(_a0 ctx.GameContext, game *state.Game) (messaging.GameState[messaging.DeployPhaseState], error)
- type PhaseController_Expecter
- func (_e *PhaseController_Expecter) GetAttackPhaseState(_a0 interface{}, game interface{}) *PhaseController_GetAttackPhaseState_Call
- func (_e *PhaseController_Expecter) GetConquerPhaseState(_a0 interface{}, game interface{}) *PhaseController_GetConquerPhaseState_Call
- func (_e *PhaseController_Expecter) GetDeployPhaseState(_a0 interface{}, game interface{}) *PhaseController_GetDeployPhaseState_Call
- type PhaseController_GetAttackPhaseState_Call
- func (_c *PhaseController_GetAttackPhaseState_Call) Return(_a0 messaging.GameState[messaging.EmptyState], _a1 error) *PhaseController_GetAttackPhaseState_Call
- func (_c *PhaseController_GetAttackPhaseState_Call) Run(run func(_a0 ctx.GameContext, game *state.Game)) *PhaseController_GetAttackPhaseState_Call
- func (_c *PhaseController_GetAttackPhaseState_Call) RunAndReturn(...) *PhaseController_GetAttackPhaseState_Call
- type PhaseController_GetConquerPhaseState_Call
- func (_c *PhaseController_GetConquerPhaseState_Call) Return(_a0 messaging.GameState[messaging.ConquerPhaseState], _a1 error) *PhaseController_GetConquerPhaseState_Call
- func (_c *PhaseController_GetConquerPhaseState_Call) Run(run func(_a0 ctx.GameContext, game *state.Game)) *PhaseController_GetConquerPhaseState_Call
- func (_c *PhaseController_GetConquerPhaseState_Call) RunAndReturn(...) *PhaseController_GetConquerPhaseState_Call
- type PhaseController_GetDeployPhaseState_Call
- func (_c *PhaseController_GetDeployPhaseState_Call) Return(_a0 messaging.GameState[messaging.DeployPhaseState], _a1 error) *PhaseController_GetDeployPhaseState_Call
- func (_c *PhaseController_GetDeployPhaseState_Call) Run(run func(_a0 ctx.GameContext, game *state.Game)) *PhaseController_GetDeployPhaseState_Call
- func (_c *PhaseController_GetDeployPhaseState_Call) RunAndReturn(...) *PhaseController_GetDeployPhaseState_Call
- type PlayerController
- type PlayerController_Expecter
- type PlayerController_GetPlayerState_Call
- func (_c *PlayerController_GetPlayerState_Call) Return(_a0 messaging.PlayersState, _a1 error) *PlayerController_GetPlayerState_Call
- func (_c *PlayerController_GetPlayerState_Call) Run(run func(_a0 ctx.GameContext)) *PlayerController_GetPlayerState_Call
- func (_c *PlayerController_GetPlayerState_Call) RunAndReturn(run func(ctx.GameContext) (messaging.PlayersState, error)) *PlayerController_GetPlayerState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardController ¶
BoardController is an autogenerated mock type for the BoardController type
func NewBoardController ¶
func NewBoardController(t interface { mock.TestingT Cleanup(func()) }) *BoardController
NewBoardController creates a new instance of BoardController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BoardController) EXPECT ¶
func (_m *BoardController) EXPECT() *BoardController_Expecter
func (*BoardController) GetBoardState ¶
func (_m *BoardController) GetBoardState(_a0 ctx.GameContext) (messaging.BoardState, error)
GetBoardState provides a mock function with given fields: _a0
type BoardController_Expecter ¶
type BoardController_Expecter struct {
// contains filtered or unexported fields
}
func (*BoardController_Expecter) GetBoardState ¶
func (_e *BoardController_Expecter) GetBoardState(_a0 interface{}) *BoardController_GetBoardState_Call
GetBoardState is a helper method to define mock.On call
- _a0 ctx.GameContext
type BoardController_GetBoardState_Call ¶
BoardController_GetBoardState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBoardState'
func (*BoardController_GetBoardState_Call) Return ¶
func (_c *BoardController_GetBoardState_Call) Return(_a0 messaging.BoardState, _a1 error) *BoardController_GetBoardState_Call
func (*BoardController_GetBoardState_Call) Run ¶
func (_c *BoardController_GetBoardState_Call) Run(run func(_a0 ctx.GameContext)) *BoardController_GetBoardState_Call
func (*BoardController_GetBoardState_Call) RunAndReturn ¶
func (_c *BoardController_GetBoardState_Call) RunAndReturn(run func(ctx.GameContext) (messaging.BoardState, error)) *BoardController_GetBoardState_Call
type GameController ¶
GameController is an autogenerated mock type for the GameController type
func NewGameController ¶
func NewGameController(t interface { mock.TestingT Cleanup(func()) }) *GameController
NewGameController creates a new instance of GameController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GameController) CreateGame ¶
func (_m *GameController) CreateGame(_a0 ctx.UserContext, _a1 request.CreateGame) (int64, error)
CreateGame provides a mock function with given fields: _a0, _a1
func (*GameController) EXPECT ¶
func (_m *GameController) EXPECT() *GameController_Expecter
type GameController_CreateGame_Call ¶
GameController_CreateGame_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateGame'
func (*GameController_CreateGame_Call) Return ¶
func (_c *GameController_CreateGame_Call) Return(_a0 int64, _a1 error) *GameController_CreateGame_Call
func (*GameController_CreateGame_Call) Run ¶
func (_c *GameController_CreateGame_Call) Run(run func(_a0 ctx.UserContext, _a1 request.CreateGame)) *GameController_CreateGame_Call
func (*GameController_CreateGame_Call) RunAndReturn ¶
func (_c *GameController_CreateGame_Call) RunAndReturn(run func(ctx.UserContext, request.CreateGame) (int64, error)) *GameController_CreateGame_Call
type GameController_Expecter ¶
type GameController_Expecter struct {
// contains filtered or unexported fields
}
func (*GameController_Expecter) CreateGame ¶
func (_e *GameController_Expecter) CreateGame(_a0 interface{}, _a1 interface{}) *GameController_CreateGame_Call
CreateGame is a helper method to define mock.On call
- _a0 ctx.UserContext
- _a1 request.CreateGame
type MoveController ¶
MoveController is an autogenerated mock type for the MoveController type
func NewMoveController ¶
func NewMoveController(t interface { mock.TestingT Cleanup(func()) }) *MoveController
NewMoveController creates a new instance of MoveController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MoveController) EXPECT ¶
func (_m *MoveController) EXPECT() *MoveController_Expecter
func (*MoveController) PerformAttackMove ¶
func (_m *MoveController) PerformAttackMove(_a0 ctx.GameContext, attackMove request.AttackMove) error
PerformAttackMove provides a mock function with given fields: _a0, attackMove
func (*MoveController) PerformConquerMove ¶
func (_m *MoveController) PerformConquerMove(_a0 ctx.GameContext, conquerMove request.ConquerMove) error
PerformConquerMove provides a mock function with given fields: _a0, conquerMove
func (*MoveController) PerformDeployMove ¶
func (_m *MoveController) PerformDeployMove(_a0 ctx.GameContext, deployMove request.DeployMove) error
PerformDeployMove provides a mock function with given fields: _a0, deployMove
type MoveController_Expecter ¶
type MoveController_Expecter struct {
// contains filtered or unexported fields
}
func (*MoveController_Expecter) PerformAttackMove ¶
func (_e *MoveController_Expecter) PerformAttackMove(_a0 interface{}, attackMove interface{}) *MoveController_PerformAttackMove_Call
PerformAttackMove is a helper method to define mock.On call
- _a0 ctx.GameContext
- attackMove request.AttackMove
func (*MoveController_Expecter) PerformConquerMove ¶
func (_e *MoveController_Expecter) PerformConquerMove(_a0 interface{}, conquerMove interface{}) *MoveController_PerformConquerMove_Call
PerformConquerMove is a helper method to define mock.On call
- _a0 ctx.GameContext
- conquerMove request.ConquerMove
func (*MoveController_Expecter) PerformDeployMove ¶
func (_e *MoveController_Expecter) PerformDeployMove(_a0 interface{}, deployMove interface{}) *MoveController_PerformDeployMove_Call
PerformDeployMove is a helper method to define mock.On call
- _a0 ctx.GameContext
- deployMove request.DeployMove
type MoveController_PerformAttackMove_Call ¶
MoveController_PerformAttackMove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PerformAttackMove'
func (*MoveController_PerformAttackMove_Call) Return ¶
func (_c *MoveController_PerformAttackMove_Call) Return(_a0 error) *MoveController_PerformAttackMove_Call
func (*MoveController_PerformAttackMove_Call) Run ¶
func (_c *MoveController_PerformAttackMove_Call) Run(run func(_a0 ctx.GameContext, attackMove request.AttackMove)) *MoveController_PerformAttackMove_Call
func (*MoveController_PerformAttackMove_Call) RunAndReturn ¶
func (_c *MoveController_PerformAttackMove_Call) RunAndReturn(run func(ctx.GameContext, request.AttackMove) error) *MoveController_PerformAttackMove_Call
type MoveController_PerformConquerMove_Call ¶
MoveController_PerformConquerMove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PerformConquerMove'
func (*MoveController_PerformConquerMove_Call) Return ¶
func (_c *MoveController_PerformConquerMove_Call) Return(_a0 error) *MoveController_PerformConquerMove_Call
func (*MoveController_PerformConquerMove_Call) Run ¶
func (_c *MoveController_PerformConquerMove_Call) Run(run func(_a0 ctx.GameContext, conquerMove request.ConquerMove)) *MoveController_PerformConquerMove_Call
func (*MoveController_PerformConquerMove_Call) RunAndReturn ¶
func (_c *MoveController_PerformConquerMove_Call) RunAndReturn(run func(ctx.GameContext, request.ConquerMove) error) *MoveController_PerformConquerMove_Call
type MoveController_PerformDeployMove_Call ¶
MoveController_PerformDeployMove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PerformDeployMove'
func (*MoveController_PerformDeployMove_Call) Return ¶
func (_c *MoveController_PerformDeployMove_Call) Return(_a0 error) *MoveController_PerformDeployMove_Call
func (*MoveController_PerformDeployMove_Call) Run ¶
func (_c *MoveController_PerformDeployMove_Call) Run(run func(_a0 ctx.GameContext, deployMove request.DeployMove)) *MoveController_PerformDeployMove_Call
func (*MoveController_PerformDeployMove_Call) RunAndReturn ¶
func (_c *MoveController_PerformDeployMove_Call) RunAndReturn(run func(ctx.GameContext, request.DeployMove) error) *MoveController_PerformDeployMove_Call
type PhaseController ¶
PhaseController is an autogenerated mock type for the PhaseController type
func NewPhaseController ¶
func NewPhaseController(t interface { mock.TestingT Cleanup(func()) }) *PhaseController
NewPhaseController creates a new instance of PhaseController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PhaseController) EXPECT ¶
func (_m *PhaseController) EXPECT() *PhaseController_Expecter
func (*PhaseController) GetAttackPhaseState ¶
func (_m *PhaseController) GetAttackPhaseState(_a0 ctx.GameContext, game *state.Game) (messaging.GameState[messaging.EmptyState], error)
GetAttackPhaseState provides a mock function with given fields: _a0, game
func (*PhaseController) GetConquerPhaseState ¶
func (_m *PhaseController) GetConquerPhaseState(_a0 ctx.GameContext, game *state.Game) (messaging.GameState[messaging.ConquerPhaseState], error)
GetConquerPhaseState provides a mock function with given fields: _a0, game
func (*PhaseController) GetDeployPhaseState ¶
func (_m *PhaseController) GetDeployPhaseState(_a0 ctx.GameContext, game *state.Game) (messaging.GameState[messaging.DeployPhaseState], error)
GetDeployPhaseState provides a mock function with given fields: _a0, game
type PhaseController_Expecter ¶
type PhaseController_Expecter struct {
// contains filtered or unexported fields
}
func (*PhaseController_Expecter) GetAttackPhaseState ¶
func (_e *PhaseController_Expecter) GetAttackPhaseState(_a0 interface{}, game interface{}) *PhaseController_GetAttackPhaseState_Call
GetAttackPhaseState is a helper method to define mock.On call
- _a0 ctx.GameContext
- game *state.Game
func (*PhaseController_Expecter) GetConquerPhaseState ¶
func (_e *PhaseController_Expecter) GetConquerPhaseState(_a0 interface{}, game interface{}) *PhaseController_GetConquerPhaseState_Call
GetConquerPhaseState is a helper method to define mock.On call
- _a0 ctx.GameContext
- game *state.Game
func (*PhaseController_Expecter) GetDeployPhaseState ¶
func (_e *PhaseController_Expecter) GetDeployPhaseState(_a0 interface{}, game interface{}) *PhaseController_GetDeployPhaseState_Call
GetDeployPhaseState is a helper method to define mock.On call
- _a0 ctx.GameContext
- game *state.Game
type PhaseController_GetAttackPhaseState_Call ¶
PhaseController_GetAttackPhaseState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAttackPhaseState'
func (*PhaseController_GetAttackPhaseState_Call) Return ¶
func (_c *PhaseController_GetAttackPhaseState_Call) Return(_a0 messaging.GameState[messaging.EmptyState], _a1 error) *PhaseController_GetAttackPhaseState_Call
func (*PhaseController_GetAttackPhaseState_Call) Run ¶
func (_c *PhaseController_GetAttackPhaseState_Call) Run(run func(_a0 ctx.GameContext, game *state.Game)) *PhaseController_GetAttackPhaseState_Call
func (*PhaseController_GetAttackPhaseState_Call) RunAndReturn ¶
func (_c *PhaseController_GetAttackPhaseState_Call) RunAndReturn(run func(ctx.GameContext, *state.Game) (messaging.GameState[messaging.EmptyState], error)) *PhaseController_GetAttackPhaseState_Call
type PhaseController_GetConquerPhaseState_Call ¶
PhaseController_GetConquerPhaseState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConquerPhaseState'
func (*PhaseController_GetConquerPhaseState_Call) Return ¶
func (_c *PhaseController_GetConquerPhaseState_Call) Return(_a0 messaging.GameState[messaging.ConquerPhaseState], _a1 error) *PhaseController_GetConquerPhaseState_Call
func (*PhaseController_GetConquerPhaseState_Call) Run ¶
func (_c *PhaseController_GetConquerPhaseState_Call) Run(run func(_a0 ctx.GameContext, game *state.Game)) *PhaseController_GetConquerPhaseState_Call
func (*PhaseController_GetConquerPhaseState_Call) RunAndReturn ¶
func (_c *PhaseController_GetConquerPhaseState_Call) RunAndReturn(run func(ctx.GameContext, *state.Game) (messaging.GameState[messaging.ConquerPhaseState], error)) *PhaseController_GetConquerPhaseState_Call
type PhaseController_GetDeployPhaseState_Call ¶
PhaseController_GetDeployPhaseState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeployPhaseState'
func (*PhaseController_GetDeployPhaseState_Call) Return ¶
func (_c *PhaseController_GetDeployPhaseState_Call) Return(_a0 messaging.GameState[messaging.DeployPhaseState], _a1 error) *PhaseController_GetDeployPhaseState_Call
func (*PhaseController_GetDeployPhaseState_Call) Run ¶
func (_c *PhaseController_GetDeployPhaseState_Call) Run(run func(_a0 ctx.GameContext, game *state.Game)) *PhaseController_GetDeployPhaseState_Call
func (*PhaseController_GetDeployPhaseState_Call) RunAndReturn ¶
func (_c *PhaseController_GetDeployPhaseState_Call) RunAndReturn(run func(ctx.GameContext, *state.Game) (messaging.GameState[messaging.DeployPhaseState], error)) *PhaseController_GetDeployPhaseState_Call
type PlayerController ¶
PlayerController is an autogenerated mock type for the PlayerController type
func NewPlayerController ¶
func NewPlayerController(t interface { mock.TestingT Cleanup(func()) }) *PlayerController
NewPlayerController creates a new instance of PlayerController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PlayerController) EXPECT ¶
func (_m *PlayerController) EXPECT() *PlayerController_Expecter
func (*PlayerController) GetPlayerState ¶
func (_m *PlayerController) GetPlayerState(_a0 ctx.GameContext) (messaging.PlayersState, error)
GetPlayerState provides a mock function with given fields: _a0
type PlayerController_Expecter ¶
type PlayerController_Expecter struct {
// contains filtered or unexported fields
}
func (*PlayerController_Expecter) GetPlayerState ¶
func (_e *PlayerController_Expecter) GetPlayerState(_a0 interface{}) *PlayerController_GetPlayerState_Call
GetPlayerState is a helper method to define mock.On call
- _a0 ctx.GameContext
type PlayerController_GetPlayerState_Call ¶
PlayerController_GetPlayerState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPlayerState'
func (*PlayerController_GetPlayerState_Call) Return ¶
func (_c *PlayerController_GetPlayerState_Call) Return(_a0 messaging.PlayersState, _a1 error) *PlayerController_GetPlayerState_Call
func (*PlayerController_GetPlayerState_Call) Run ¶
func (_c *PlayerController_GetPlayerState_Call) Run(run func(_a0 ctx.GameContext)) *PlayerController_GetPlayerState_Call
func (*PlayerController_GetPlayerState_Call) RunAndReturn ¶
func (_c *PlayerController_GetPlayerState_Call) RunAndReturn(run func(ctx.GameContext) (messaging.PlayersState, error)) *PlayerController_GetPlayerState_Call