conquer

package
v0.0.0-...-ce35f69 Latest Latest
Warning

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

Go to latest
Published: Oct 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 Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) ForcedAdvancementPhase() sqlc.PhaseType

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

func (*Service) PhaseType

func (_m *Service) PhaseType() sqlc.PhaseType

PhaseType provides a mock function with given fields:

func (*Service) Walk

func (_m *Service) Walk(_a0 ctx.GameContext, querier db.Querier) (sqlc.PhaseType, error)

Walk provides a mock function with given fields: _a0, querier

type Service_AdvanceQ_Call

type Service_AdvanceQ_Call struct {
	*mock.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 (*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

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

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

func (*Service_ForcedAdvancementPhase_Call) RunAndReturn

type Service_GetPhaseStateQ_Call

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

func (*Service_GetPhaseStateQ_Call) RunAndReturn

type Service_GetPhaseState_Call

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

func (*Service_GetPhaseState_Call) RunAndReturn

type Service_PerformQ_Call

type Service_PerformQ_Call struct {
	*mock.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 (*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

type Service_PhaseType_Call

type Service_PhaseType_Call struct {
	*mock.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 (*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

type Service_Walk_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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