region

package
v0.0.0-...-ff538be Latest Latest
Warning

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

Go to latest
Published: Jun 19, 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) CreateRegions

func (_m *Service) CreateRegions(ctx context.Context, querier db.Querier, players []sqlc.Player, regions []board.Region) error

CreateRegions provides a mock function with given fields: ctx, querier, players, regions

func (*Service) EXPECT

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) GetRegionQ

func (_m *Service) GetRegionQ(ctx context.Context, querier db.Querier, gameID int64, _a3 string) (*sqlc.GetRegionsByGameRow, error)

GetRegionQ provides a mock function with given fields: ctx, querier, gameID, _a3

func (*Service) GetRegions

func (_m *Service) GetRegions(ctx context.Context, gameID int64) ([]sqlc.GetRegionsByGameRow, error)

GetRegions provides a mock function with given fields: ctx, gameID

func (*Service) GetRegionsQ

func (_m *Service) GetRegionsQ(ctx context.Context, querier db.Querier, gameID int64) ([]sqlc.GetRegionsByGameRow, error)

GetRegionsQ provides a mock function with given fields: ctx, querier, gameID

func (*Service) IncreaseTroopsInRegion

func (_m *Service) IncreaseTroopsInRegion(ctx context.Context, querier db.Querier, regionID int64, troops int64) error

IncreaseTroopsInRegion provides a mock function with given fields: ctx, querier, regionID, troops

type Service_CreateRegions_Call

type Service_CreateRegions_Call struct {
	*mock.Call
}

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

func (*Service_CreateRegions_Call) Return

func (*Service_CreateRegions_Call) Run

func (_c *Service_CreateRegions_Call) Run(run func(ctx context.Context, querier db.Querier, players []sqlc.Player, regions []board.Region)) *Service_CreateRegions_Call

func (*Service_CreateRegions_Call) RunAndReturn

type Service_Expecter

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

func (*Service_Expecter) CreateRegions

func (_e *Service_Expecter) CreateRegions(ctx interface{}, querier interface{}, players interface{}, regions interface{}) *Service_CreateRegions_Call

CreateRegions is a helper method to define mock.On call

  • ctx context.Context
  • querier db.Querier
  • players []sqlc.Player
  • regions []board.Region

func (*Service_Expecter) GetRegionQ

func (_e *Service_Expecter) GetRegionQ(ctx interface{}, querier interface{}, gameID interface{}, _a3 interface{}) *Service_GetRegionQ_Call

GetRegionQ is a helper method to define mock.On call

  • ctx context.Context
  • querier db.Querier
  • gameID int64
  • _a3 string

func (*Service_Expecter) GetRegions

func (_e *Service_Expecter) GetRegions(ctx interface{}, gameID interface{}) *Service_GetRegions_Call

GetRegions is a helper method to define mock.On call

  • ctx context.Context
  • gameID int64

func (*Service_Expecter) GetRegionsQ

func (_e *Service_Expecter) GetRegionsQ(ctx interface{}, querier interface{}, gameID interface{}) *Service_GetRegionsQ_Call

GetRegionsQ is a helper method to define mock.On call

  • ctx context.Context
  • querier db.Querier
  • gameID int64

func (*Service_Expecter) IncreaseTroopsInRegion

func (_e *Service_Expecter) IncreaseTroopsInRegion(ctx interface{}, querier interface{}, regionID interface{}, troops interface{}) *Service_IncreaseTroopsInRegion_Call

IncreaseTroopsInRegion is a helper method to define mock.On call

  • ctx context.Context
  • querier db.Querier
  • regionID int64
  • troops int64

type Service_GetRegionQ_Call

type Service_GetRegionQ_Call struct {
	*mock.Call
}

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

func (*Service_GetRegionQ_Call) Return

func (*Service_GetRegionQ_Call) Run

func (_c *Service_GetRegionQ_Call) Run(run func(ctx context.Context, querier db.Querier, gameID int64, _a3 string)) *Service_GetRegionQ_Call

func (*Service_GetRegionQ_Call) RunAndReturn

type Service_GetRegionsQ_Call

type Service_GetRegionsQ_Call struct {
	*mock.Call
}

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

func (*Service_GetRegionsQ_Call) Return

func (*Service_GetRegionsQ_Call) Run

func (_c *Service_GetRegionsQ_Call) Run(run func(ctx context.Context, querier db.Querier, gameID int64)) *Service_GetRegionsQ_Call

func (*Service_GetRegionsQ_Call) RunAndReturn

type Service_GetRegions_Call

type Service_GetRegions_Call struct {
	*mock.Call
}

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

func (*Service_GetRegions_Call) Return

func (*Service_GetRegions_Call) Run

func (_c *Service_GetRegions_Call) Run(run func(ctx context.Context, gameID int64)) *Service_GetRegions_Call

func (*Service_GetRegions_Call) RunAndReturn

type Service_IncreaseTroopsInRegion_Call

type Service_IncreaseTroopsInRegion_Call struct {
	*mock.Call
}

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

func (*Service_IncreaseTroopsInRegion_Call) Return

func (*Service_IncreaseTroopsInRegion_Call) Run

func (*Service_IncreaseTroopsInRegion_Call) RunAndReturn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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