mock

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAbility

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

MockAbility is a mock of Ability interface.

func NewMockAbility

func NewMockAbility(ctrl *gomock.Controller) *MockAbility

NewMockAbility creates a new mock instance.

func (*MockAbility) CreateAbility

func (m *MockAbility) CreateAbility(ctx context.Context, req *dto.AbilityRequest) (*dto.AbilityResponse, error)

CreateAbility mocks base method.

func (*MockAbility) DeleteAbility

func (m *MockAbility) DeleteAbility(ctx context.Context, id string) error

DeleteAbility mocks base method.

func (*MockAbility) EXPECT

func (m *MockAbility) EXPECT() *MockAbilityMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAbility) GetAbilitiesByHeroID

func (m *MockAbility) GetAbilitiesByHeroID(ctx context.Context, id string) ([]dto.AbilityResponse, error)

GetAbilitiesByHeroID mocks base method.

func (*MockAbility) GetAbilityByID

func (m *MockAbility) GetAbilityByID(ctx context.Context, id string) (*dto.AbilityResponse, error)

GetAbilityByID mocks base method.

type MockAbilityCache

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

MockAbilityCache is a mock of AbilityCache interface.

func NewMockAbilityCache

func NewMockAbilityCache(ctrl *gomock.Controller) *MockAbilityCache

NewMockAbilityCache creates a new mock instance.

func (*MockAbilityCache) DeleteAbility

func (m *MockAbilityCache) DeleteAbility(ctx context.Context, key string) error

DeleteAbility mocks base method.

func (*MockAbilityCache) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAbilityCache) GetAbility

func (m *MockAbilityCache) GetAbility(ctx context.Context, key string) (*model.Ability, error)

GetAbility mocks base method.

func (*MockAbilityCache) SetAbility

func (m *MockAbilityCache) SetAbility(ctx context.Context, ability *model.Ability) error

SetAbility mocks base method.

type MockAbilityCacheMockRecorder

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

MockAbilityCacheMockRecorder is the mock recorder for MockAbilityCache.

func (*MockAbilityCacheMockRecorder) DeleteAbility

func (mr *MockAbilityCacheMockRecorder) DeleteAbility(ctx, key interface{}) *gomock.Call

DeleteAbility indicates an expected call of DeleteAbility.

func (*MockAbilityCacheMockRecorder) GetAbility

func (mr *MockAbilityCacheMockRecorder) GetAbility(ctx, key interface{}) *gomock.Call

GetAbility indicates an expected call of GetAbility.

func (*MockAbilityCacheMockRecorder) SetAbility

func (mr *MockAbilityCacheMockRecorder) SetAbility(ctx, ability interface{}) *gomock.Call

SetAbility indicates an expected call of SetAbility.

type MockAbilityMockRecorder

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

MockAbilityMockRecorder is the mock recorder for MockAbility.

func (*MockAbilityMockRecorder) CreateAbility

func (mr *MockAbilityMockRecorder) CreateAbility(ctx, req interface{}) *gomock.Call

CreateAbility indicates an expected call of CreateAbility.

func (*MockAbilityMockRecorder) DeleteAbility

func (mr *MockAbilityMockRecorder) DeleteAbility(ctx, id interface{}) *gomock.Call

DeleteAbility indicates an expected call of DeleteAbility.

func (*MockAbilityMockRecorder) GetAbilitiesByHeroID

func (mr *MockAbilityMockRecorder) GetAbilitiesByHeroID(ctx, id interface{}) *gomock.Call

GetAbilitiesByHeroID indicates an expected call of GetAbilitiesByHeroID.

func (*MockAbilityMockRecorder) GetAbilityByID

func (mr *MockAbilityMockRecorder) GetAbilityByID(ctx, id interface{}) *gomock.Call

GetAbilityByID indicates an expected call of GetAbilityByID.

type MockAbilityRepository

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

MockAbilityRepository is a mock of AbilityRepository interface.

func NewMockAbilityRepository

func NewMockAbilityRepository(ctrl *gomock.Controller) *MockAbilityRepository

NewMockAbilityRepository creates a new mock instance.

func (*MockAbilityRepository) CreateAbility

func (m *MockAbilityRepository) CreateAbility(ctx context.Context, ability *model.Ability) error

CreateAbility mocks base method.

func (*MockAbilityRepository) DeleteAbilityByID

func (m *MockAbilityRepository) DeleteAbilityByID(ctx context.Context, id string) error

DeleteAbilityByID mocks base method.

func (*MockAbilityRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAbilityRepository) GetAbilitiesByHeroID

func (m *MockAbilityRepository) GetAbilitiesByHeroID(ctx context.Context, id string) ([]model.Ability, error)

GetAbilitiesByHeroID mocks base method.

func (*MockAbilityRepository) GetAbilityByID

func (m *MockAbilityRepository) GetAbilityByID(ctx context.Context, id string) (*model.Ability, error)

GetAbilityByID mocks base method.

type MockAbilityRepositoryMockRecorder

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

MockAbilityRepositoryMockRecorder is the mock recorder for MockAbilityRepository.

func (*MockAbilityRepositoryMockRecorder) CreateAbility

func (mr *MockAbilityRepositoryMockRecorder) CreateAbility(ctx, ability interface{}) *gomock.Call

CreateAbility indicates an expected call of CreateAbility.

func (*MockAbilityRepositoryMockRecorder) DeleteAbilityByID

func (mr *MockAbilityRepositoryMockRecorder) DeleteAbilityByID(ctx, id interface{}) *gomock.Call

DeleteAbilityByID indicates an expected call of DeleteAbilityByID.

func (*MockAbilityRepositoryMockRecorder) GetAbilitiesByHeroID

func (mr *MockAbilityRepositoryMockRecorder) GetAbilitiesByHeroID(ctx, id interface{}) *gomock.Call

GetAbilitiesByHeroID indicates an expected call of GetAbilitiesByHeroID.

func (*MockAbilityRepositoryMockRecorder) GetAbilityByID

func (mr *MockAbilityRepositoryMockRecorder) GetAbilityByID(ctx, id interface{}) *gomock.Call

GetAbilityByID indicates an expected call of GetAbilityByID.

type MockCache

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

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) DeleteGame

func (m *MockCache) DeleteGame(ctx context.Context, key string) error

DeleteGame mocks base method.

func (*MockCache) DeleteHero

func (m *MockCache) DeleteHero(ctx context.Context, key string) error

DeleteHero mocks base method.

func (*MockCache) DeleteTeam

func (m *MockCache) DeleteTeam(ctx context.Context, key string) error

DeleteTeam mocks base method.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCache) GetGame

func (m *MockCache) GetGame(ctx context.Context, key string) (*model0.Game, error)

GetGame mocks base method.

func (*MockCache) GetHero

func (m *MockCache) GetHero(ctx context.Context, key string) (*model1.Hero, error)

GetHero mocks base method.

func (*MockCache) GetTeam

func (m *MockCache) GetTeam(ctx context.Context, key string) (*model2.Team, error)

GetTeam mocks base method.

func (*MockCache) SetGame

func (m *MockCache) SetGame(ctx context.Context, game *model0.Game) error

SetGame mocks base method.

func (*MockCache) SetHero

func (m *MockCache) SetHero(ctx context.Context, hero *model1.Hero) error

SetHero mocks base method.

func (*MockCache) SetTeam

func (m *MockCache) SetTeam(ctx context.Context, team *model2.Team, key string) error

SetTeam mocks base method.

type MockCacheMockRecorder

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

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) DeleteGame

func (mr *MockCacheMockRecorder) DeleteGame(ctx, key interface{}) *gomock.Call

DeleteGame indicates an expected call of DeleteGame.

func (*MockCacheMockRecorder) DeleteHero

func (mr *MockCacheMockRecorder) DeleteHero(ctx, key interface{}) *gomock.Call

DeleteHero indicates an expected call of DeleteHero.

func (*MockCacheMockRecorder) DeleteTeam

func (mr *MockCacheMockRecorder) DeleteTeam(ctx, key interface{}) *gomock.Call

DeleteTeam indicates an expected call of DeleteTeam.

func (*MockCacheMockRecorder) GetGame

func (mr *MockCacheMockRecorder) GetGame(ctx, key interface{}) *gomock.Call

GetGame indicates an expected call of GetGame.

func (*MockCacheMockRecorder) GetHero

func (mr *MockCacheMockRecorder) GetHero(ctx, key interface{}) *gomock.Call

GetHero indicates an expected call of GetHero.

func (*MockCacheMockRecorder) GetTeam

func (mr *MockCacheMockRecorder) GetTeam(ctx, key interface{}) *gomock.Call

GetTeam indicates an expected call of GetTeam.

func (*MockCacheMockRecorder) SetGame

func (mr *MockCacheMockRecorder) SetGame(ctx, game interface{}) *gomock.Call

SetGame indicates an expected call of SetGame.

func (*MockCacheMockRecorder) SetHero

func (mr *MockCacheMockRecorder) SetHero(ctx, hero interface{}) *gomock.Call

SetHero indicates an expected call of SetHero.

func (*MockCacheMockRecorder) SetTeam

func (mr *MockCacheMockRecorder) SetTeam(ctx, team, key interface{}) *gomock.Call

SetTeam indicates an expected call of SetTeam.

type MockConsole

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

MockConsole is a mock of Console interface.

func NewMockConsole

func NewMockConsole(ctrl *gomock.Controller) *MockConsole

NewMockConsole creates a new mock instance.

func (*MockConsole) CreateConsoles

func (m *MockConsole) CreateConsoles(ctx context.Context, req *dto.ConsoleRequest) (*dto.ConsoleResponse, error)

CreateConsoles mocks base method.

func (*MockConsole) EXPECT

func (m *MockConsole) EXPECT() *MockConsoleMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConsole) GetConsoles

func (m *MockConsole) GetConsoles(ctx context.Context) (*dto.ConsoleResponse, error)

GetConsoles mocks base method.

type MockConsoleMockRecorder

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

MockConsoleMockRecorder is the mock recorder for MockConsole.

func (*MockConsoleMockRecorder) CreateConsoles

func (mr *MockConsoleMockRecorder) CreateConsoles(ctx, req interface{}) *gomock.Call

CreateConsoles indicates an expected call of CreateConsoles.

func (*MockConsoleMockRecorder) GetConsoles

func (mr *MockConsoleMockRecorder) GetConsoles(ctx interface{}) *gomock.Call

GetConsoles indicates an expected call of GetConsoles.

type MockConsoleRepository

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

MockConsoleRepository is a mock of ConsoleRepository interface.

func NewMockConsoleRepository

func NewMockConsoleRepository(ctrl *gomock.Controller) *MockConsoleRepository

NewMockConsoleRepository creates a new mock instance.

func (*MockConsoleRepository) CreateConsoles

func (m *MockConsoleRepository) CreateConsoles(ctx context.Context, consoles []model0.Console) error

CreateConsoles mocks base method.

func (*MockConsoleRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConsoleRepository) GetConsoles

func (m *MockConsoleRepository) GetConsoles(ctx context.Context) ([]model0.Console, error)

GetConsoles mocks base method.

type MockConsoleRepositoryMockRecorder

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

MockConsoleRepositoryMockRecorder is the mock recorder for MockConsoleRepository.

func (*MockConsoleRepositoryMockRecorder) CreateConsoles

func (mr *MockConsoleRepositoryMockRecorder) CreateConsoles(ctx, consoles interface{}) *gomock.Call

CreateConsoles indicates an expected call of CreateConsoles.

func (*MockConsoleRepositoryMockRecorder) GetConsoles

func (mr *MockConsoleRepositoryMockRecorder) GetConsoles(ctx interface{}) *gomock.Call

GetConsoles indicates an expected call of GetConsoles.

type MockGame

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

MockGame is a mock of Game interface.

func NewMockGame

func NewMockGame(ctrl *gomock.Controller) *MockGame

NewMockGame creates a new mock instance.

func (*MockGame) CreateGame

func (m *MockGame) CreateGame(ctx context.Context, req *dto.GameRequest) (*dto.GameResponse, error)

CreateGame mocks base method.

func (*MockGame) Delete

func (m *MockGame) Delete(ctx context.Context, id string) error

Delete mocks base method.

func (*MockGame) EXPECT

func (m *MockGame) EXPECT() *MockGameMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGame) GetByID

func (m *MockGame) GetByID(ctx context.Context, id string) (*dto.GameResponse, error)

GetByID mocks base method.

func (*MockGame) UpdateGame

func (m *MockGame) UpdateGame(ctx context.Context, id string, req *dto.GameRequest) error

UpdateGame mocks base method.

type MockGameCache

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

MockGameCache is a mock of GameCache interface.

func NewMockGameCache

func NewMockGameCache(ctrl *gomock.Controller) *MockGameCache

NewMockGameCache creates a new mock instance.

func (*MockGameCache) DeleteGame

func (m *MockGameCache) DeleteGame(ctx context.Context, key string) error

DeleteGame mocks base method.

func (*MockGameCache) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGameCache) GetGame

func (m *MockGameCache) GetGame(ctx context.Context, key string) (*model0.Game, error)

GetGame mocks base method.

func (*MockGameCache) SetGame

func (m *MockGameCache) SetGame(ctx context.Context, game *model0.Game) error

SetGame mocks base method.

type MockGameCacheMockRecorder

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

MockGameCacheMockRecorder is the mock recorder for MockGameCache.

func (*MockGameCacheMockRecorder) DeleteGame

func (mr *MockGameCacheMockRecorder) DeleteGame(ctx, key interface{}) *gomock.Call

DeleteGame indicates an expected call of DeleteGame.

func (*MockGameCacheMockRecorder) GetGame

func (mr *MockGameCacheMockRecorder) GetGame(ctx, key interface{}) *gomock.Call

GetGame indicates an expected call of GetGame.

func (*MockGameCacheMockRecorder) SetGame

func (mr *MockGameCacheMockRecorder) SetGame(ctx, game interface{}) *gomock.Call

SetGame indicates an expected call of SetGame.

type MockGameMockRecorder

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

MockGameMockRecorder is the mock recorder for MockGame.

func (*MockGameMockRecorder) CreateGame

func (mr *MockGameMockRecorder) CreateGame(ctx, req interface{}) *gomock.Call

CreateGame indicates an expected call of CreateGame.

func (*MockGameMockRecorder) Delete

func (mr *MockGameMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockGameMockRecorder) GetByID

func (mr *MockGameMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockGameMockRecorder) UpdateGame

func (mr *MockGameMockRecorder) UpdateGame(ctx, id, req interface{}) *gomock.Call

UpdateGame indicates an expected call of UpdateGame.

type MockGameRepository

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

MockGameRepository is a mock of GameRepository interface.

func NewMockGameRepository

func NewMockGameRepository(ctrl *gomock.Controller) *MockGameRepository

NewMockGameRepository creates a new mock instance.

func (*MockGameRepository) CreateGame

func (m *MockGameRepository) CreateGame(ctx context.Context, game *model1.Game) error

CreateGame mocks base method.

func (*MockGameRepository) DeleteGameByID

func (m *MockGameRepository) DeleteGameByID(ctx context.Context, id string) error

DeleteGameByID mocks base method.

func (*MockGameRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGameRepository) GetGameByID

func (m *MockGameRepository) GetGameByID(ctx context.Context, id string) (*model1.Game, error)

GetGameByID mocks base method.

func (*MockGameRepository) UpdateGame

func (m *MockGameRepository) UpdateGame(ctx context.Context, game *model1.Game) error

UpdateGame mocks base method.

type MockGameRepositoryMockRecorder

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

MockGameRepositoryMockRecorder is the mock recorder for MockGameRepository.

func (*MockGameRepositoryMockRecorder) CreateGame

func (mr *MockGameRepositoryMockRecorder) CreateGame(ctx, game interface{}) *gomock.Call

CreateGame indicates an expected call of CreateGame.

func (*MockGameRepositoryMockRecorder) DeleteGameByID

func (mr *MockGameRepositoryMockRecorder) DeleteGameByID(ctx, id interface{}) *gomock.Call

DeleteGameByID indicates an expected call of DeleteGameByID.

func (*MockGameRepositoryMockRecorder) GetGameByID

func (mr *MockGameRepositoryMockRecorder) GetGameByID(ctx, id interface{}) *gomock.Call

GetGameByID indicates an expected call of GetGameByID.

func (*MockGameRepositoryMockRecorder) UpdateGame

func (mr *MockGameRepositoryMockRecorder) UpdateGame(ctx, game interface{}) *gomock.Call

UpdateGame indicates an expected call of UpdateGame.

type MockHero

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

MockHero is a mock of Hero interface.

func NewMockHero

func NewMockHero(ctrl *gomock.Controller) *MockHero

NewMockHero creates a new mock instance.

func (*MockHero) AddAbilityToHero

func (m *MockHero) AddAbilityToHero(ctx context.Context, abilityID, heroID string) error

AddAbilityToHero mocks base method.

func (*MockHero) CreateHero

func (m *MockHero) CreateHero(ctx context.Context, request *dto.HeroRequest) (*dto.HeroResponse, error)

CreateHero mocks base method.

func (*MockHero) DeleteHeroByID

func (m *MockHero) DeleteHeroByID(ctx context.Context, id string) error

DeleteHeroByID mocks base method.

func (*MockHero) EXPECT

func (m *MockHero) EXPECT() *MockHeroMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHero) GetHeroByID

func (m *MockHero) GetHeroByID(ctx context.Context, id string) (*dto.HeroResponse, error)

GetHeroByID mocks base method.

func (*MockHero) UpdateHero

func (m *MockHero) UpdateHero(ctx context.Context, id string, request *dto.HeroRequest) error

UpdateHero mocks base method.

type MockHeroCache

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

MockHeroCache is a mock of HeroCache interface.

func NewMockHeroCache

func NewMockHeroCache(ctrl *gomock.Controller) *MockHeroCache

NewMockHeroCache creates a new mock instance.

func (*MockHeroCache) DeleteHero

func (m *MockHeroCache) DeleteHero(ctx context.Context, key string) error

DeleteHero mocks base method.

func (*MockHeroCache) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHeroCache) GetHero

func (m *MockHeroCache) GetHero(ctx context.Context, key string) (*model1.Hero, error)

GetHero mocks base method.

func (*MockHeroCache) SetHero

func (m *MockHeroCache) SetHero(ctx context.Context, hero *model1.Hero) error

SetHero mocks base method.

type MockHeroCacheMockRecorder

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

MockHeroCacheMockRecorder is the mock recorder for MockHeroCache.

func (*MockHeroCacheMockRecorder) DeleteHero

func (mr *MockHeroCacheMockRecorder) DeleteHero(ctx, key interface{}) *gomock.Call

DeleteHero indicates an expected call of DeleteHero.

func (*MockHeroCacheMockRecorder) GetHero

func (mr *MockHeroCacheMockRecorder) GetHero(ctx, key interface{}) *gomock.Call

GetHero indicates an expected call of GetHero.

func (*MockHeroCacheMockRecorder) SetHero

func (mr *MockHeroCacheMockRecorder) SetHero(ctx, hero interface{}) *gomock.Call

SetHero indicates an expected call of SetHero.

type MockHeroMockRecorder

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

MockHeroMockRecorder is the mock recorder for MockHero.

func (*MockHeroMockRecorder) AddAbilityToHero

func (mr *MockHeroMockRecorder) AddAbilityToHero(ctx, abilityID, heroID interface{}) *gomock.Call

AddAbilityToHero indicates an expected call of AddAbilityToHero.

func (*MockHeroMockRecorder) CreateHero

func (mr *MockHeroMockRecorder) CreateHero(ctx, request interface{}) *gomock.Call

CreateHero indicates an expected call of CreateHero.

func (*MockHeroMockRecorder) DeleteHeroByID

func (mr *MockHeroMockRecorder) DeleteHeroByID(ctx, id interface{}) *gomock.Call

DeleteHeroByID indicates an expected call of DeleteHeroByID.

func (*MockHeroMockRecorder) GetHeroByID

func (mr *MockHeroMockRecorder) GetHeroByID(ctx, id interface{}) *gomock.Call

GetHeroByID indicates an expected call of GetHeroByID.

func (*MockHeroMockRecorder) UpdateHero

func (mr *MockHeroMockRecorder) UpdateHero(ctx, id, request interface{}) *gomock.Call

UpdateHero indicates an expected call of UpdateHero.

type MockHeroRepository

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

MockHeroRepository is a mock of HeroRepository interface.

func NewMockHeroRepository

func NewMockHeroRepository(ctrl *gomock.Controller) *MockHeroRepository

NewMockHeroRepository creates a new mock instance.

func (*MockHeroRepository) AddAbilityToHero

func (m *MockHeroRepository) AddAbilityToHero(ctx context.Context, abilityID, heroID string) error

AddAbilityToHero mocks base method.

func (*MockHeroRepository) CreateHero

func (m *MockHeroRepository) CreateHero(ctx context.Context, hero *model2.Hero) error

CreateHero mocks base method.

func (*MockHeroRepository) DeleteHeroByID

func (m *MockHeroRepository) DeleteHeroByID(ctx context.Context, id string) error

DeleteHeroByID mocks base method.

func (*MockHeroRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHeroRepository) GetHeroByID

func (m *MockHeroRepository) GetHeroByID(ctx context.Context, id string) (*model2.Hero, error)

GetHeroByID mocks base method.

func (*MockHeroRepository) UpdateHero

func (m *MockHeroRepository) UpdateHero(ctx context.Context, hero *model2.Hero) error

UpdateHero mocks base method.

type MockHeroRepositoryMockRecorder

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

MockHeroRepositoryMockRecorder is the mock recorder for MockHeroRepository.

func (*MockHeroRepositoryMockRecorder) AddAbilityToHero

func (mr *MockHeroRepositoryMockRecorder) AddAbilityToHero(ctx, abilityID, heroID interface{}) *gomock.Call

AddAbilityToHero indicates an expected call of AddAbilityToHero.

func (*MockHeroRepositoryMockRecorder) CreateHero

func (mr *MockHeroRepositoryMockRecorder) CreateHero(ctx, hero interface{}) *gomock.Call

CreateHero indicates an expected call of CreateHero.

func (*MockHeroRepositoryMockRecorder) DeleteHeroByID

func (mr *MockHeroRepositoryMockRecorder) DeleteHeroByID(ctx, id interface{}) *gomock.Call

DeleteHeroByID indicates an expected call of DeleteHeroByID.

func (*MockHeroRepositoryMockRecorder) GetHeroByID

func (mr *MockHeroRepositoryMockRecorder) GetHeroByID(ctx, id interface{}) *gomock.Call

GetHeroByID indicates an expected call of GetHeroByID.

func (*MockHeroRepositoryMockRecorder) UpdateHero

func (mr *MockHeroRepositoryMockRecorder) UpdateHero(ctx, hero interface{}) *gomock.Call

UpdateHero indicates an expected call of UpdateHero.

type MockLogger added in v0.0.7

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

MockLogger is a mock of Logger interface.

func NewMockLogger added in v0.0.7

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) EXPECT added in v0.0.7

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLogger) Error added in v0.0.7

func (m *MockLogger) Error(ctx context.Context, err error, data any)

Error mocks base method.

type MockLoggerMockRecorder added in v0.0.7

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Error added in v0.0.7

func (mr *MockLoggerMockRecorder) Error(ctx, err, data interface{}) *gomock.Call

Error indicates an expected call of Error.

type MockTeam

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

MockTeam is a mock of Team interface.

func NewMockTeam

func NewMockTeam(ctrl *gomock.Controller) *MockTeam

NewMockTeam creates a new mock instance.

func (*MockTeam) CreateTeam

func (m *MockTeam) CreateTeam(ctx context.Context, request *dto.TeamRequest) (*dto.TeamResponse, error)

CreateTeam mocks base method.

func (*MockTeam) DeleteTeamByID

func (m *MockTeam) DeleteTeamByID(ctx context.Context, id string) error

DeleteTeamByID mocks base method.

func (*MockTeam) EXPECT

func (m *MockTeam) EXPECT() *MockTeamMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTeam) GetTeamByID

func (m *MockTeam) GetTeamByID(ctx context.Context, id string) (*dto.TeamResponse, error)

GetTeamByID mocks base method.

func (*MockTeam) GetTeamByName

func (m *MockTeam) GetTeamByName(ctx context.Context, name *dto.GetTeamByName) (*dto.TeamResponse, error)

GetTeamByName mocks base method.

func (*MockTeam) UpdateTeam

func (m *MockTeam) UpdateTeam(ctx context.Context, id string, request *dto.TeamRequest) error

UpdateTeam mocks base method.

type MockTeamCache

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

MockTeamCache is a mock of TeamCache interface.

func NewMockTeamCache

func NewMockTeamCache(ctrl *gomock.Controller) *MockTeamCache

NewMockTeamCache creates a new mock instance.

func (*MockTeamCache) DeleteTeam

func (m *MockTeamCache) DeleteTeam(ctx context.Context, key string) error

DeleteTeam mocks base method.

func (*MockTeamCache) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTeamCache) GetTeam

func (m *MockTeamCache) GetTeam(ctx context.Context, key string) (*model2.Team, error)

GetTeam mocks base method.

func (*MockTeamCache) SetTeam

func (m *MockTeamCache) SetTeam(ctx context.Context, team *model2.Team, key string) error

SetTeam mocks base method.

type MockTeamCacheMockRecorder

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

MockTeamCacheMockRecorder is the mock recorder for MockTeamCache.

func (*MockTeamCacheMockRecorder) DeleteTeam

func (mr *MockTeamCacheMockRecorder) DeleteTeam(ctx, key interface{}) *gomock.Call

DeleteTeam indicates an expected call of DeleteTeam.

func (*MockTeamCacheMockRecorder) GetTeam

func (mr *MockTeamCacheMockRecorder) GetTeam(ctx, key interface{}) *gomock.Call

GetTeam indicates an expected call of GetTeam.

func (*MockTeamCacheMockRecorder) SetTeam

func (mr *MockTeamCacheMockRecorder) SetTeam(ctx, team, key interface{}) *gomock.Call

SetTeam indicates an expected call of SetTeam.

type MockTeamMockRecorder

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

MockTeamMockRecorder is the mock recorder for MockTeam.

func (*MockTeamMockRecorder) CreateTeam

func (mr *MockTeamMockRecorder) CreateTeam(ctx, request interface{}) *gomock.Call

CreateTeam indicates an expected call of CreateTeam.

func (*MockTeamMockRecorder) DeleteTeamByID

func (mr *MockTeamMockRecorder) DeleteTeamByID(ctx, id interface{}) *gomock.Call

DeleteTeamByID indicates an expected call of DeleteTeamByID.

func (*MockTeamMockRecorder) GetTeamByID

func (mr *MockTeamMockRecorder) GetTeamByID(ctx, id interface{}) *gomock.Call

GetTeamByID indicates an expected call of GetTeamByID.

func (*MockTeamMockRecorder) GetTeamByName

func (mr *MockTeamMockRecorder) GetTeamByName(ctx, name interface{}) *gomock.Call

GetTeamByName indicates an expected call of GetTeamByName.

func (*MockTeamMockRecorder) UpdateTeam

func (mr *MockTeamMockRecorder) UpdateTeam(ctx, id, request interface{}) *gomock.Call

UpdateTeam indicates an expected call of UpdateTeam.

type MockTeamRepository

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

MockTeamRepository is a mock of TeamRepository interface.

func NewMockTeamRepository

func NewMockTeamRepository(ctrl *gomock.Controller) *MockTeamRepository

NewMockTeamRepository creates a new mock instance.

func (*MockTeamRepository) CreateTeam

func (m *MockTeamRepository) CreateTeam(ctx context.Context, team *model3.Team) error

CreateTeam mocks base method.

func (*MockTeamRepository) DeleteTeamByID

func (m *MockTeamRepository) DeleteTeamByID(ctx context.Context, id string) error

DeleteTeamByID mocks base method.

func (*MockTeamRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTeamRepository) GetTeamByID

func (m *MockTeamRepository) GetTeamByID(ctx context.Context, id string) (*model3.Team, error)

GetTeamByID mocks base method.

func (*MockTeamRepository) GetTeamByName

func (m *MockTeamRepository) GetTeamByName(ctx context.Context, name string) (*model3.Team, error)

GetTeamByName mocks base method.

func (*MockTeamRepository) UpdateTeam

func (m *MockTeamRepository) UpdateTeam(ctx context.Context, team *model3.Team) error

UpdateTeam mocks base method.

type MockTeamRepositoryMockRecorder

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

MockTeamRepositoryMockRecorder is the mock recorder for MockTeamRepository.

func (*MockTeamRepositoryMockRecorder) CreateTeam

func (mr *MockTeamRepositoryMockRecorder) CreateTeam(ctx, team interface{}) *gomock.Call

CreateTeam indicates an expected call of CreateTeam.

func (*MockTeamRepositoryMockRecorder) DeleteTeamByID

func (mr *MockTeamRepositoryMockRecorder) DeleteTeamByID(ctx, id interface{}) *gomock.Call

DeleteTeamByID indicates an expected call of DeleteTeamByID.

func (*MockTeamRepositoryMockRecorder) GetTeamByID

func (mr *MockTeamRepositoryMockRecorder) GetTeamByID(ctx, id interface{}) *gomock.Call

GetTeamByID indicates an expected call of GetTeamByID.

func (*MockTeamRepositoryMockRecorder) GetTeamByName

func (mr *MockTeamRepositoryMockRecorder) GetTeamByName(ctx, name interface{}) *gomock.Call

GetTeamByName indicates an expected call of GetTeamByName.

func (*MockTeamRepositoryMockRecorder) UpdateTeam

func (mr *MockTeamRepositoryMockRecorder) UpdateTeam(ctx, team interface{}) *gomock.Call

UpdateTeam indicates an expected call of UpdateTeam.

type MockVendor added in v0.0.7

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

MockVendor is a mock of Vendor interface.

func NewMockVendor added in v0.0.7

func NewMockVendor(ctrl *gomock.Controller) *MockVendor

NewMockVendor creates a new mock instance.

func (*MockVendor) EXPECT added in v0.0.7

func (m *MockVendor) EXPECT() *MockVendorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVendor) Send added in v0.0.7

func (m *MockVendor) Send(ctx context.Context, payload []byte)

Send mocks base method.

type MockVendorMockRecorder added in v0.0.7

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

MockVendorMockRecorder is the mock recorder for MockVendor.

func (*MockVendorMockRecorder) Send added in v0.0.7

func (mr *MockVendorMockRecorder) Send(ctx, payload interface{}) *gomock.Call

Send indicates an expected call of Send.

type RepositoryMock

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

RepositoryMock is a mock of Repository interface.

func NewRepositoryMock

func NewRepositoryMock(ctrl *gomock.Controller) *RepositoryMock

NewRepositoryMock creates a new mock instance.

func (*RepositoryMock) AddAbilityToHero

func (m *RepositoryMock) AddAbilityToHero(ctx context.Context, abilityID, heroID string) error

AddAbilityToHero mocks base method.

func (*RepositoryMock) CreateGame

func (m *RepositoryMock) CreateGame(ctx context.Context, game *model1.Game) error

CreateGame mocks base method.

func (*RepositoryMock) CreateHero

func (m *RepositoryMock) CreateHero(ctx context.Context, hero *model2.Hero) error

CreateHero mocks base method.

func (*RepositoryMock) CreateTeam

func (m *RepositoryMock) CreateTeam(ctx context.Context, team *model3.Team) error

CreateTeam mocks base method.

func (*RepositoryMock) DeleteGameByID

func (m *RepositoryMock) DeleteGameByID(ctx context.Context, id string) error

DeleteGameByID mocks base method.

func (*RepositoryMock) DeleteHeroByID

func (m *RepositoryMock) DeleteHeroByID(ctx context.Context, id string) error

DeleteHeroByID mocks base method.

func (*RepositoryMock) DeleteTeamByID

func (m *RepositoryMock) DeleteTeamByID(ctx context.Context, id string) error

DeleteTeamByID mocks base method.

func (*RepositoryMock) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*RepositoryMock) GetGameByID

func (m *RepositoryMock) GetGameByID(ctx context.Context, id string) (*model1.Game, error)

GetGameByID mocks base method.

func (*RepositoryMock) GetHeroByID

func (m *RepositoryMock) GetHeroByID(ctx context.Context, id string) (*model2.Hero, error)

GetHeroByID mocks base method.

func (*RepositoryMock) GetTeamByID

func (m *RepositoryMock) GetTeamByID(ctx context.Context, id string) (*model3.Team, error)

GetTeamByID mocks base method.

func (*RepositoryMock) GetTeamByName

func (m *RepositoryMock) GetTeamByName(ctx context.Context, name string) (*model3.Team, error)

GetTeamByName mocks base method.

func (*RepositoryMock) UpdateGame

func (m *RepositoryMock) UpdateGame(ctx context.Context, game *model1.Game) error

UpdateGame mocks base method.

func (*RepositoryMock) UpdateHero

func (m *RepositoryMock) UpdateHero(ctx context.Context, hero *model2.Hero) error

UpdateHero mocks base method.

func (*RepositoryMock) UpdateTeam

func (m *RepositoryMock) UpdateTeam(ctx context.Context, team *model3.Team) error

UpdateTeam mocks base method.

type RepositoryMockMockRecorder

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

RepositoryMockMockRecorder is the mock recorder for RepositoryMock.

func (*RepositoryMockMockRecorder) AddAbilityToHero

func (mr *RepositoryMockMockRecorder) AddAbilityToHero(ctx, abilityID, heroID interface{}) *gomock.Call

AddAbilityToHero indicates an expected call of AddAbilityToHero.

func (*RepositoryMockMockRecorder) CreateGame

func (mr *RepositoryMockMockRecorder) CreateGame(ctx, game interface{}) *gomock.Call

CreateGame indicates an expected call of CreateGame.

func (*RepositoryMockMockRecorder) CreateHero

func (mr *RepositoryMockMockRecorder) CreateHero(ctx, hero interface{}) *gomock.Call

CreateHero indicates an expected call of CreateHero.

func (*RepositoryMockMockRecorder) CreateTeam

func (mr *RepositoryMockMockRecorder) CreateTeam(ctx, team interface{}) *gomock.Call

CreateTeam indicates an expected call of CreateTeam.

func (*RepositoryMockMockRecorder) DeleteGameByID

func (mr *RepositoryMockMockRecorder) DeleteGameByID(ctx, id interface{}) *gomock.Call

DeleteGameByID indicates an expected call of DeleteGameByID.

func (*RepositoryMockMockRecorder) DeleteHeroByID

func (mr *RepositoryMockMockRecorder) DeleteHeroByID(ctx, id interface{}) *gomock.Call

DeleteHeroByID indicates an expected call of DeleteHeroByID.

func (*RepositoryMockMockRecorder) DeleteTeamByID

func (mr *RepositoryMockMockRecorder) DeleteTeamByID(ctx, id interface{}) *gomock.Call

DeleteTeamByID indicates an expected call of DeleteTeamByID.

func (*RepositoryMockMockRecorder) GetGameByID

func (mr *RepositoryMockMockRecorder) GetGameByID(ctx, id interface{}) *gomock.Call

GetGameByID indicates an expected call of GetGameByID.

func (*RepositoryMockMockRecorder) GetHeroByID

func (mr *RepositoryMockMockRecorder) GetHeroByID(ctx, id interface{}) *gomock.Call

GetHeroByID indicates an expected call of GetHeroByID.

func (*RepositoryMockMockRecorder) GetTeamByID

func (mr *RepositoryMockMockRecorder) GetTeamByID(ctx, id interface{}) *gomock.Call

GetTeamByID indicates an expected call of GetTeamByID.

func (*RepositoryMockMockRecorder) GetTeamByName

func (mr *RepositoryMockMockRecorder) GetTeamByName(ctx, name interface{}) *gomock.Call

GetTeamByName indicates an expected call of GetTeamByName.

func (*RepositoryMockMockRecorder) UpdateGame

func (mr *RepositoryMockMockRecorder) UpdateGame(ctx, game interface{}) *gomock.Call

UpdateGame indicates an expected call of UpdateGame.

func (*RepositoryMockMockRecorder) UpdateHero

func (mr *RepositoryMockMockRecorder) UpdateHero(ctx, hero interface{}) *gomock.Call

UpdateHero indicates an expected call of UpdateHero.

func (*RepositoryMockMockRecorder) UpdateTeam

func (mr *RepositoryMockMockRecorder) UpdateTeam(ctx, team interface{}) *gomock.Call

UpdateTeam indicates an expected call of UpdateTeam.

Jump to

Keyboard shortcuts

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