Documentation ¶
Index ¶
- type Service
- func (_m *Service) AdvanceQ(_a0 ctx.GameContext, querier db.Querier, targetPhase sqlc.PhaseType, ...) error
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) ForcedAdvancementPhase() sqlc.PhaseType
- func (_m *Service) GetPhaseState(_a0 ctx.GameContext) (sqlc.GetConquerPhaseStateRow, error)
- func (_m *Service) GetPhaseStateQ(_a0 ctx.GameContext, querier db.Querier) (sqlc.GetConquerPhaseStateRow, error)
- func (_m *Service) PerformQ(_a0 ctx.GameContext, querier db.Querier, move conquer.Move) (*conquer.MoveResult, error)
- func (_m *Service) PhaseType() sqlc.PhaseType
- func (_m *Service) Walk(_a0 ctx.GameContext, querier db.Querier) (sqlc.PhaseType, error)
- type Service_AdvanceQ_Call
- type Service_Expecter
- func (_e *Service_Expecter) AdvanceQ(_a0 interface{}, querier interface{}, targetPhase interface{}, ...) *Service_AdvanceQ_Call
- func (_e *Service_Expecter) ForcedAdvancementPhase() *Service_ForcedAdvancementPhase_Call
- func (_e *Service_Expecter) GetPhaseState(_a0 interface{}) *Service_GetPhaseState_Call
- func (_e *Service_Expecter) GetPhaseStateQ(_a0 interface{}, querier interface{}) *Service_GetPhaseStateQ_Call
- func (_e *Service_Expecter) PerformQ(_a0 interface{}, querier interface{}, move interface{}) *Service_PerformQ_Call
- func (_e *Service_Expecter) PhaseType() *Service_PhaseType_Call
- func (_e *Service_Expecter) Walk(_a0 interface{}, querier interface{}) *Service_Walk_Call
- type Service_ForcedAdvancementPhase_Call
- func (_c *Service_ForcedAdvancementPhase_Call) Return(_a0 sqlc.PhaseType) *Service_ForcedAdvancementPhase_Call
- func (_c *Service_ForcedAdvancementPhase_Call) Run(run func()) *Service_ForcedAdvancementPhase_Call
- func (_c *Service_ForcedAdvancementPhase_Call) RunAndReturn(run func() sqlc.PhaseType) *Service_ForcedAdvancementPhase_Call
- type Service_GetPhaseStateQ_Call
- func (_c *Service_GetPhaseStateQ_Call) Return(_a0 sqlc.GetConquerPhaseStateRow, _a1 error) *Service_GetPhaseStateQ_Call
- func (_c *Service_GetPhaseStateQ_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier)) *Service_GetPhaseStateQ_Call
- func (_c *Service_GetPhaseStateQ_Call) RunAndReturn(run func(ctx.GameContext, db.Querier) (sqlc.GetConquerPhaseStateRow, error)) *Service_GetPhaseStateQ_Call
- type Service_GetPhaseState_Call
- func (_c *Service_GetPhaseState_Call) Return(_a0 sqlc.GetConquerPhaseStateRow, _a1 error) *Service_GetPhaseState_Call
- func (_c *Service_GetPhaseState_Call) Run(run func(_a0 ctx.GameContext)) *Service_GetPhaseState_Call
- func (_c *Service_GetPhaseState_Call) RunAndReturn(run func(ctx.GameContext) (sqlc.GetConquerPhaseStateRow, error)) *Service_GetPhaseState_Call
- type Service_PerformQ_Call
- func (_c *Service_PerformQ_Call) Return(_a0 *conquer.MoveResult, _a1 error) *Service_PerformQ_Call
- func (_c *Service_PerformQ_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier, move conquer.Move)) *Service_PerformQ_Call
- func (_c *Service_PerformQ_Call) RunAndReturn(...) *Service_PerformQ_Call
- type Service_PhaseType_Call
- type Service_Walk_Call
- func (_c *Service_Walk_Call) Return(_a0 sqlc.PhaseType, _a1 error) *Service_Walk_Call
- func (_c *Service_Walk_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier)) *Service_Walk_Call
- func (_c *Service_Walk_Call) RunAndReturn(run func(ctx.GameContext, db.Querier) (sqlc.PhaseType, error)) *Service_Walk_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) AdvanceQ ¶
func (_m *Service) AdvanceQ(_a0 ctx.GameContext, querier db.Querier, targetPhase sqlc.PhaseType, performResult *conquer.MoveResult) error
AdvanceQ provides a mock function with given fields: _a0, querier, targetPhase, performResult
func (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) ForcedAdvancementPhase ¶
ForcedAdvancementPhase provides a mock function with given fields:
func (*Service) GetPhaseState ¶
func (_m *Service) GetPhaseState(_a0 ctx.GameContext) (sqlc.GetConquerPhaseStateRow, error)
GetPhaseState provides a mock function with given fields: _a0
func (*Service) GetPhaseStateQ ¶
func (_m *Service) GetPhaseStateQ(_a0 ctx.GameContext, querier db.Querier) (sqlc.GetConquerPhaseStateRow, error)
GetPhaseStateQ provides a mock function with given fields: _a0, querier
func (*Service) PerformQ ¶
func (_m *Service) PerformQ(_a0 ctx.GameContext, querier db.Querier, move conquer.Move) (*conquer.MoveResult, error)
PerformQ provides a mock function with given fields: _a0, querier, move
type Service_AdvanceQ_Call ¶
Service_AdvanceQ_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdvanceQ'
func (*Service_AdvanceQ_Call) Return ¶
func (_c *Service_AdvanceQ_Call) Return(_a0 error) *Service_AdvanceQ_Call
func (*Service_AdvanceQ_Call) Run ¶
func (_c *Service_AdvanceQ_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier, targetPhase sqlc.PhaseType, performResult *conquer.MoveResult)) *Service_AdvanceQ_Call
func (*Service_AdvanceQ_Call) RunAndReturn ¶
func (_c *Service_AdvanceQ_Call) RunAndReturn(run func(ctx.GameContext, db.Querier, sqlc.PhaseType, *conquer.MoveResult) error) *Service_AdvanceQ_Call
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) AdvanceQ ¶
func (_e *Service_Expecter) AdvanceQ(_a0 interface{}, querier interface{}, targetPhase interface{}, performResult interface{}) *Service_AdvanceQ_Call
AdvanceQ is a helper method to define mock.On call
- _a0 ctx.GameContext
- querier db.Querier
- targetPhase sqlc.PhaseType
- performResult *conquer.MoveResult
func (*Service_Expecter) ForcedAdvancementPhase ¶
func (_e *Service_Expecter) ForcedAdvancementPhase() *Service_ForcedAdvancementPhase_Call
ForcedAdvancementPhase is a helper method to define mock.On call
func (*Service_Expecter) GetPhaseState ¶
func (_e *Service_Expecter) GetPhaseState(_a0 interface{}) *Service_GetPhaseState_Call
GetPhaseState is a helper method to define mock.On call
- _a0 ctx.GameContext
func (*Service_Expecter) GetPhaseStateQ ¶
func (_e *Service_Expecter) GetPhaseStateQ(_a0 interface{}, querier interface{}) *Service_GetPhaseStateQ_Call
GetPhaseStateQ is a helper method to define mock.On call
- _a0 ctx.GameContext
- querier db.Querier
func (*Service_Expecter) PerformQ ¶
func (_e *Service_Expecter) PerformQ(_a0 interface{}, querier interface{}, move interface{}) *Service_PerformQ_Call
PerformQ is a helper method to define mock.On call
- _a0 ctx.GameContext
- querier db.Querier
- move conquer.Move
func (*Service_Expecter) PhaseType ¶
func (_e *Service_Expecter) PhaseType() *Service_PhaseType_Call
PhaseType is a helper method to define mock.On call
func (*Service_Expecter) Walk ¶
func (_e *Service_Expecter) Walk(_a0 interface{}, querier interface{}) *Service_Walk_Call
Walk is a helper method to define mock.On call
- _a0 ctx.GameContext
- querier db.Querier
type Service_ForcedAdvancementPhase_Call ¶
Service_ForcedAdvancementPhase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForcedAdvancementPhase'
func (*Service_ForcedAdvancementPhase_Call) Return ¶
func (_c *Service_ForcedAdvancementPhase_Call) Return(_a0 sqlc.PhaseType) *Service_ForcedAdvancementPhase_Call
func (*Service_ForcedAdvancementPhase_Call) Run ¶
func (_c *Service_ForcedAdvancementPhase_Call) Run(run func()) *Service_ForcedAdvancementPhase_Call
func (*Service_ForcedAdvancementPhase_Call) RunAndReturn ¶
func (_c *Service_ForcedAdvancementPhase_Call) RunAndReturn(run func() sqlc.PhaseType) *Service_ForcedAdvancementPhase_Call
type Service_GetPhaseStateQ_Call ¶
Service_GetPhaseStateQ_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPhaseStateQ'
func (*Service_GetPhaseStateQ_Call) Return ¶
func (_c *Service_GetPhaseStateQ_Call) Return(_a0 sqlc.GetConquerPhaseStateRow, _a1 error) *Service_GetPhaseStateQ_Call
func (*Service_GetPhaseStateQ_Call) Run ¶
func (_c *Service_GetPhaseStateQ_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier)) *Service_GetPhaseStateQ_Call
func (*Service_GetPhaseStateQ_Call) RunAndReturn ¶
func (_c *Service_GetPhaseStateQ_Call) RunAndReturn(run func(ctx.GameContext, db.Querier) (sqlc.GetConquerPhaseStateRow, error)) *Service_GetPhaseStateQ_Call
type Service_GetPhaseState_Call ¶
Service_GetPhaseState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPhaseState'
func (*Service_GetPhaseState_Call) Return ¶
func (_c *Service_GetPhaseState_Call) Return(_a0 sqlc.GetConquerPhaseStateRow, _a1 error) *Service_GetPhaseState_Call
func (*Service_GetPhaseState_Call) Run ¶
func (_c *Service_GetPhaseState_Call) Run(run func(_a0 ctx.GameContext)) *Service_GetPhaseState_Call
func (*Service_GetPhaseState_Call) RunAndReturn ¶
func (_c *Service_GetPhaseState_Call) RunAndReturn(run func(ctx.GameContext) (sqlc.GetConquerPhaseStateRow, error)) *Service_GetPhaseState_Call
type Service_PerformQ_Call ¶
Service_PerformQ_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PerformQ'
func (*Service_PerformQ_Call) Return ¶
func (_c *Service_PerformQ_Call) Return(_a0 *conquer.MoveResult, _a1 error) *Service_PerformQ_Call
func (*Service_PerformQ_Call) Run ¶
func (_c *Service_PerformQ_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier, move conquer.Move)) *Service_PerformQ_Call
func (*Service_PerformQ_Call) RunAndReturn ¶
func (_c *Service_PerformQ_Call) RunAndReturn(run func(ctx.GameContext, db.Querier, conquer.Move) (*conquer.MoveResult, error)) *Service_PerformQ_Call
type Service_PhaseType_Call ¶
Service_PhaseType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PhaseType'
func (*Service_PhaseType_Call) Return ¶
func (_c *Service_PhaseType_Call) Return(_a0 sqlc.PhaseType) *Service_PhaseType_Call
func (*Service_PhaseType_Call) Run ¶
func (_c *Service_PhaseType_Call) Run(run func()) *Service_PhaseType_Call
func (*Service_PhaseType_Call) RunAndReturn ¶
func (_c *Service_PhaseType_Call) RunAndReturn(run func() sqlc.PhaseType) *Service_PhaseType_Call
type Service_Walk_Call ¶
Service_Walk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Walk'
func (*Service_Walk_Call) Return ¶
func (_c *Service_Walk_Call) Return(_a0 sqlc.PhaseType, _a1 error) *Service_Walk_Call
func (*Service_Walk_Call) Run ¶
func (_c *Service_Walk_Call) Run(run func(_a0 ctx.GameContext, querier db.Querier)) *Service_Walk_Call
func (*Service_Walk_Call) RunAndReturn ¶
func (_c *Service_Walk_Call) RunAndReturn(run func(ctx.GameContext, db.Querier) (sqlc.PhaseType, error)) *Service_Walk_Call