controller

package
v0.0.0-...-a83bb7a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardController

type BoardController struct {
	mock.Mock
}

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 (*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

type BoardController_GetBoardState_Call struct {
	*mock.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 (*BoardController_GetBoardState_Call) Run

func (*BoardController_GetBoardState_Call) RunAndReturn

type GameController

type GameController struct {
	mock.Mock
}

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

type GameController_CreateGame_Call

type GameController_CreateGame_Call struct {
	*mock.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 (*GameController_CreateGame_Call) Run

func (*GameController_CreateGame_Call) RunAndReturn

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

type MoveController struct {
	mock.Mock
}

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 (*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

type MoveController_PerformAttackMove_Call struct {
	*mock.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 (*MoveController_PerformAttackMove_Call) Run

func (*MoveController_PerformAttackMove_Call) RunAndReturn

type MoveController_PerformConquerMove_Call

type MoveController_PerformConquerMove_Call struct {
	*mock.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 (*MoveController_PerformConquerMove_Call) Run

func (*MoveController_PerformConquerMove_Call) RunAndReturn

type MoveController_PerformDeployMove_Call

type MoveController_PerformDeployMove_Call struct {
	*mock.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 (*MoveController_PerformDeployMove_Call) Run

func (*MoveController_PerformDeployMove_Call) RunAndReturn

type PhaseController

type PhaseController struct {
	mock.Mock
}

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 (*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

type PhaseController_GetAttackPhaseState_Call struct {
	*mock.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 (*PhaseController_GetAttackPhaseState_Call) Run

type PhaseController_GetConquerPhaseState_Call

type PhaseController_GetConquerPhaseState_Call struct {
	*mock.Call
}

PhaseController_GetConquerPhaseState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConquerPhaseState'

func (*PhaseController_GetConquerPhaseState_Call) Run

type PhaseController_GetDeployPhaseState_Call

type PhaseController_GetDeployPhaseState_Call struct {
	*mock.Call
}

PhaseController_GetDeployPhaseState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeployPhaseState'

func (*PhaseController_GetDeployPhaseState_Call) Run

type PlayerController

type PlayerController struct {
	mock.Mock
}

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 (*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

type PlayerController_GetPlayerState_Call struct {
	*mock.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 (*PlayerController_GetPlayerState_Call) Run

func (*PlayerController_GetPlayerState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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