mocks

package
v0.0.0-...-faa9808 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBattleRepository

type IBattleRepository struct {
	mock.Mock
}

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.

func (*IBattleRepository) All

func (_m *IBattleRepository) All(ctx context.Context, args ...string) ([]*domain.Battle, error)

All provides a mock function with given fields: ctx, args

func (*IBattleRepository) Count

func (_m *IBattleRepository) Count(ctx context.Context) int

Count provides a mock function with given fields: ctx

func (*IBattleRepository) Create

func (_m *IBattleRepository) Create(ctx context.Context, param *domain.Battle) error

Create provides a mock function with given fields: ctx, param

type ICountRowRepository

type ICountRowRepository struct {
	mock.Mock
}

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.

func (*ICountRowRepository) Count

func (_m *ICountRowRepository) Count(ctx context.Context) int

Count provides a mock function with given fields: ctx

type ICreateBulkRepository

type ICreateBulkRepository[T interface{}] struct {
	mock.Mock
}

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.

func (*ICreateBulkRepository[T]) Create

func (_m *ICreateBulkRepository[T]) Create(ctx context.Context, param []*T) error

Create provides a mock function with given fields: ctx, param

type ICreateRepository

type ICreateRepository[T interface{}] struct {
	mock.Mock
}

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.

func (*ICreateRepository[T]) Create

func (_m *ICreateRepository[T]) Create(ctx context.Context, param *T) error

Create provides a mock function with given fields: ctx, param

type IDeleteRepository

type IDeleteRepository[T interface{}] struct {
	mock.Mock
}

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.

func (*IDeleteRepository[T]) Delete

func (_m *IDeleteRepository[T]) Delete(ctx context.Context, param *T) error

Delete provides a mock function with given fields: ctx, param

type IGameAction

type IGameAction struct {
	mock.Mock
}

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

type IHttpClient struct {
	mock.Mock
}

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

type IMonsterRepository struct {
	mock.Mock
}

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) All

func (_m *IMonsterRepository) All(ctx context.Context, args ...string) ([]*domain.Monster, error)

All provides a mock function with given fields: ctx, args

func (*IMonsterRepository) Count

func (_m *IMonsterRepository) Count(ctx context.Context) int

Count provides a mock function with given fields: ctx

func (*IMonsterRepository) Create

func (_m *IMonsterRepository) Create(ctx context.Context, param []*domain.Monster) error

Create provides a mock function with given fields: ctx, param

func (*IMonsterRepository) Update

func (_m *IMonsterRepository) Update(ctx context.Context, param *domain.Monster) error

Update provides a mock function with given fields: ctx, param

type IPlayerAction

type IPlayerAction struct {
	mock.Mock
}

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

type IPokeapiRESTRepository struct {
	mock.Mock
}

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.

func (*IPokeapiRESTRepository) Pokemon

func (_m *IPokeapiRESTRepository) Pokemon(ctx context.Context, offset int, limit int) ([]*domain.Monster, error)

Pokemon provides a mock function with given fields: ctx, offset, limit

type IPokewarService

type IPokewarService struct {
	mock.Mock
}

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

type IRankRepository struct {
	mock.Mock
}

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.

func (*IRankRepository) All

func (_m *IRankRepository) All(ctx context.Context, args ...string) ([]*domain.Rank, error)

All provides a mock function with given fields: ctx, args

type IReadAllRepository

type IReadAllRepository[T interface{}] struct {
	mock.Mock
}

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.

func (*IReadAllRepository[T]) All

func (_m *IReadAllRepository[T]) All(ctx context.Context, args ...string) ([]*T, error)

All provides a mock function with given fields: ctx, args

type IReadOneRepository

type IReadOneRepository[T interface{}] struct {
	mock.Mock
}

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.

func (*IReadOneRepository[T]) Find

func (_m *IReadOneRepository[T]) Find(ctx context.Context, key domain.FindWith, val interface{}) (*T, error)

Find provides a mock function with given fields: ctx, key, val

type IUpdateRepository

type IUpdateRepository[T interface{}] struct {
	mock.Mock
}

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.

func (*IUpdateRepository[T]) Update

func (_m *IUpdateRepository[T]) Update(ctx context.Context, param *T) error

Update provides a mock function with given fields: ctx, param

type Option

type Option struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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