Documentation ¶
Index ¶
- type IBattleRepository
- type ICountRowRepository
- type ICreateBulkRepository
- type ICreateRepository
- type IDeleteRepository
- type IGameAction
- type IHttpClient
- type IMonsterRepository
- func (_m *IMonsterRepository) All(ctx context.Context, args ...string) ([]*domain.Monster, error)
- func (_m *IMonsterRepository) Count(ctx context.Context) int
- func (_m *IMonsterRepository) Create(ctx context.Context, param []*domain.Monster) error
- func (_m *IMonsterRepository) Update(ctx context.Context, param *domain.Monster) error
- type IPlayerAction
- type IPokeapiRESTRepository
- type IPokewarService
- func (_m *IPokewarService) AddBattle(param *domain.Battle) *utils.ServiceError
- func (_m *IPokewarService) BattlesCount() int
- func (_m *IPokewarService) FetchBattles(args ...string) ([]*domain.Battle, *utils.ServiceError)
- func (_m *IPokewarService) FetchMonsters(args ...string) ([]*domain.Monster, *utils.ServiceError)
- func (_m *IPokewarService) FetchRanks(args ...string) ([]*domain.Rank, *utils.ServiceError)
- func (_m *IPokewarService) MonstersCount() int
- func (_m *IPokewarService) PrepareMonstersForBattle() ([]*domain.Monster, *utils.ServiceError)
- func (_m *IPokewarService) SyncMonsters(updateEnv bool, args ...string) ([]*domain.Monster, *utils.ServiceError)
- type IRankRepository
- type IReadAllRepository
- type IReadOneRepository
- type IUpdateRepository
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBattleRepository ¶
IBattleRepository is an autogenerated mock type for the IBattleRepository type
func NewIBattleRepository ¶
func NewIBattleRepository(t mockConstructorTestingTNewIBattleRepository) *IBattleRepository
NewIBattleRepository creates a new instance of IBattleRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ICountRowRepository ¶
ICountRowRepository is an autogenerated mock type for the ICountRowRepository type
func NewICountRowRepository ¶
func NewICountRowRepository(t mockConstructorTestingTNewICountRowRepository) *ICountRowRepository
NewICountRowRepository creates a new instance of ICountRowRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ICreateBulkRepository ¶
ICreateBulkRepository is an autogenerated mock type for the ICreateBulkRepository type
func NewICreateBulkRepository ¶
func NewICreateBulkRepository[T interface{}](t mockConstructorTestingTNewICreateBulkRepository) *ICreateBulkRepository[T]
NewICreateBulkRepository creates a new instance of ICreateBulkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ICreateRepository ¶
ICreateRepository is an autogenerated mock type for the ICreateRepository type
func NewICreateRepository ¶
func NewICreateRepository[T interface{}](t mockConstructorTestingTNewICreateRepository) *ICreateRepository[T]
NewICreateRepository creates a new instance of ICreateRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type IDeleteRepository ¶
IDeleteRepository is an autogenerated mock type for the IDeleteRepository type
func NewIDeleteRepository ¶
func NewIDeleteRepository[T interface{}](t mockConstructorTestingTNewIDeleteRepository) *IDeleteRepository[T]
NewIDeleteRepository creates a new instance of IDeleteRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type IGameAction ¶
IGameAction is an autogenerated mock type for the IGameAction type
func NewIGameAction ¶
func NewIGameAction(t mockConstructorTestingTNewIGameAction) *IGameAction
NewIGameAction creates a new instance of IGameAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IGameAction) Reset ¶
func (_m *IGameAction) Reset()
Reset provides a mock function with given fields:
func (*IGameAction) Start ¶
func (_m *IGameAction) Start(game chan *battleroyale.Game, log chan string, eliminated chan string)
Start provides a mock function with given fields: game, log, eliminated
type IHttpClient ¶
IHttpClient is an autogenerated mock type for the IHttpClient type
func NewIHttpClient ¶
func NewIHttpClient(t mockConstructorTestingTNewIHttpClient) *IHttpClient
NewIHttpClient creates a new instance of IHttpClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IHttpClient) MakeRequest ¶
func (_m *IHttpClient) MakeRequest(obj interface{}) error
MakeRequest provides a mock function with given fields: obj
func (*IHttpClient) NewClient ¶
func (_m *IHttpClient) NewClient(opts ...httpclient.Option) *httpclient.HTTPClient
NewClient provides a mock function with given fields: opts
type IMonsterRepository ¶
IMonsterRepository is an autogenerated mock type for the IMonsterRepository type
func NewIMonsterRepository ¶
func NewIMonsterRepository(t mockConstructorTestingTNewIMonsterRepository) *IMonsterRepository
NewIMonsterRepository creates a new instance of IMonsterRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IMonsterRepository) Count ¶
func (_m *IMonsterRepository) Count(ctx context.Context) int
Count provides a mock function with given fields: ctx
type IPlayerAction ¶
IPlayerAction is an autogenerated mock type for the IPlayerAction type
func NewIPlayerAction ¶
func NewIPlayerAction(t mockConstructorTestingTNewIPlayerAction) *IPlayerAction
NewIPlayerAction creates a new instance of IPlayerAction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IPlayerAction) Attack ¶
func (_m *IPlayerAction) Attack(other *battleroyale.Player) battleroyale.Log
Attack provides a mock function with given fields: other
func (*IPlayerAction) Eliminate ¶
func (_m *IPlayerAction) Eliminate() battleroyale.Log
Eliminate provides a mock function with given fields:
func (*IPlayerAction) UpdateRank ¶
func (_m *IPlayerAction) UpdateRank(rank int)
UpdateRank provides a mock function with given fields: rank
func (*IPlayerAction) UpdateScore ¶
func (_m *IPlayerAction) UpdateScore(point int)
UpdateScore provides a mock function with given fields: point
type IPokeapiRESTRepository ¶
IPokeapiRESTRepository is an autogenerated mock type for the IPokeapiRESTRepository type
func NewIPokeapiRESTRepository ¶
func NewIPokeapiRESTRepository(t mockConstructorTestingTNewIPokeapiRESTRepository) *IPokeapiRESTRepository
NewIPokeapiRESTRepository creates a new instance of IPokeapiRESTRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type IPokewarService ¶
IPokewarService is an autogenerated mock type for the IPokewarService type
func NewIPokewarService ¶
func NewIPokewarService(t mockConstructorTestingTNewIPokewarService) *IPokewarService
NewIPokewarService creates a new instance of IPokewarService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IPokewarService) AddBattle ¶
func (_m *IPokewarService) AddBattle(param *domain.Battle) *utils.ServiceError
AddBattle provides a mock function with given fields: param
func (*IPokewarService) BattlesCount ¶
func (_m *IPokewarService) BattlesCount() int
BattlesCount provides a mock function with given fields:
func (*IPokewarService) FetchBattles ¶
func (_m *IPokewarService) FetchBattles(args ...string) ([]*domain.Battle, *utils.ServiceError)
FetchBattles provides a mock function with given fields: args
func (*IPokewarService) FetchMonsters ¶
func (_m *IPokewarService) FetchMonsters(args ...string) ([]*domain.Monster, *utils.ServiceError)
FetchMonsters provides a mock function with given fields: args
func (*IPokewarService) FetchRanks ¶
func (_m *IPokewarService) FetchRanks(args ...string) ([]*domain.Rank, *utils.ServiceError)
FetchRanks provides a mock function with given fields: args
func (*IPokewarService) MonstersCount ¶
func (_m *IPokewarService) MonstersCount() int
MonstersCount provides a mock function with given fields:
func (*IPokewarService) PrepareMonstersForBattle ¶
func (_m *IPokewarService) PrepareMonstersForBattle() ([]*domain.Monster, *utils.ServiceError)
PrepareMonstersForBattle provides a mock function with given fields:
func (*IPokewarService) SyncMonsters ¶
func (_m *IPokewarService) SyncMonsters(updateEnv bool, args ...string) ([]*domain.Monster, *utils.ServiceError)
SyncMonsters provides a mock function with given fields: updateEnv, args
type IRankRepository ¶
IRankRepository is an autogenerated mock type for the IRankRepository type
func NewIRankRepository ¶
func NewIRankRepository(t mockConstructorTestingTNewIRankRepository) *IRankRepository
NewIRankRepository creates a new instance of IRankRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type IReadAllRepository ¶
IReadAllRepository is an autogenerated mock type for the IReadAllRepository type
func NewIReadAllRepository ¶
func NewIReadAllRepository[T interface{}](t mockConstructorTestingTNewIReadAllRepository) *IReadAllRepository[T]
NewIReadAllRepository creates a new instance of IReadAllRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type IReadOneRepository ¶
IReadOneRepository is an autogenerated mock type for the IReadOneRepository type
func NewIReadOneRepository ¶
func NewIReadOneRepository[T interface{}](t mockConstructorTestingTNewIReadOneRepository) *IReadOneRepository[T]
NewIReadOneRepository creates a new instance of IReadOneRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type IUpdateRepository ¶
IUpdateRepository is an autogenerated mock type for the IUpdateRepository type
func NewIUpdateRepository ¶
func NewIUpdateRepository[T interface{}](t mockConstructorTestingTNewIUpdateRepository) *IUpdateRepository[T]
NewIUpdateRepository creates a new instance of IUpdateRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
func NewOption(t mockConstructorTestingTNewOption) *Option
NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Option) Execute ¶
func (_m *Option) Execute(_a0 *httpclient.HTTPClient)
Execute provides a mock function with given fields: _a0
Source Files ¶
- IBattleRepository.go
- ICountRowRepository.go
- ICreateBulkRepository.go
- ICreateRepository.go
- IDeleteRepository.go
- IGameAction.go
- IHttpClient.go
- IMonsterRepository.go
- IPlayerAction.go
- IPokeapiRESTRepository.go
- IPokewarService.go
- IRankRepository.go
- IReadAllRepository.go
- IReadOneRepository.go
- IUpdateRepository.go
- Option.go