mock_services

package
v0.0.0-...-d73c5c4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_services is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCards

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

MockCards is a mock of Cards interface.

func NewMockCards

func NewMockCards(ctrl *gomock.Controller) *MockCards

NewMockCards creates a new mock instance.

func (*MockCards) DrawCardFromDeckToDealer

func (m *MockCards) DrawCardFromDeckToDealer(ctx context.Context, telegramChatID int64) (core.Card, error)

DrawCardFromDeckToDealer mocks base method.

func (*MockCards) DrawCardFromDeckToPlayer

func (m *MockCards) DrawCardFromDeckToPlayer(ctx context.Context, telegramChatID int64, username string) (*core.Player, error)

DrawCardFromDeckToPlayer mocks base method.

func (*MockCards) EXPECT

func (m *MockCards) EXPECT() *MockCardsMockRecorder

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

type MockCardsMockRecorder

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

MockCardsMockRecorder is the mock recorder for MockCards.

func (*MockCardsMockRecorder) DrawCardFromDeckToDealer

func (mr *MockCardsMockRecorder) DrawCardFromDeckToDealer(ctx, telegramChatID interface{}) *gomock.Call

DrawCardFromDeckToDealer indicates an expected call of DrawCardFromDeckToDealer.

func (*MockCardsMockRecorder) DrawCardFromDeckToPlayer

func (mr *MockCardsMockRecorder) DrawCardFromDeckToPlayer(ctx, telegramChatID, username interface{}) *gomock.Call

DrawCardFromDeckToPlayer indicates an expected call of DrawCardFromDeckToPlayer.

type MockChats

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

MockChats is a mock of Chats interface.

func NewMockChats

func NewMockChats(ctrl *gomock.Controller) *MockChats

NewMockChats creates a new mock instance.

func (*MockChats) CheckChatExists

func (m *MockChats) CheckChatExists(ctx context.Context, telegramChatID int64) error

CheckChatExists mocks base method.

func (*MockChats) EXPECT

func (m *MockChats) EXPECT() *MockChatsMockRecorder

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

func (*MockChats) RegisterChat

func (m *MockChats) RegisterChat(ctx context.Context, telegramChatID int64) error

RegisterChat mocks base method.

type MockChatsMockRecorder

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

MockChatsMockRecorder is the mock recorder for MockChats.

func (*MockChatsMockRecorder) CheckChatExists

func (mr *MockChatsMockRecorder) CheckChatExists(ctx, telegramChatID interface{}) *gomock.Call

CheckChatExists indicates an expected call of CheckChatExists.

func (*MockChatsMockRecorder) RegisterChat

func (mr *MockChatsMockRecorder) RegisterChat(ctx, telegramChatID interface{}) *gomock.Call

RegisterChat indicates an expected call of RegisterChat.

type MockGames

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

MockGames is a mock of Games interface.

func NewMockGames

func NewMockGames(ctrl *gomock.Controller) *MockGames

NewMockGames creates a new mock instance.

func (*MockGames) CheckIfGameShouldBeFinished

func (m *MockGames) CheckIfGameShouldBeFinished(ctx context.Context, telegramChatID int64) (bool, error)

CheckIfGameShouldBeFinished mocks base method.

func (*MockGames) EXPECT

func (m *MockGames) EXPECT() *MockGamesMockRecorder

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

func (*MockGames) FinishGame

func (m *MockGames) FinishGame(ctx context.Context, telegramChatID int64) (*core.Game, core.UsersStatistics, error)

FinishGame mocks base method.

func (*MockGames) NewGame

func (m *MockGames) NewGame(ctx context.Context, telegramChatID int64) (*core.Game, error)

NewGame mocks base method.

type MockGamesMockRecorder

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

MockGamesMockRecorder is the mock recorder for MockGames.

func (*MockGamesMockRecorder) CheckIfGameShouldBeFinished

func (mr *MockGamesMockRecorder) CheckIfGameShouldBeFinished(ctx, telegramChatID interface{}) *gomock.Call

CheckIfGameShouldBeFinished indicates an expected call of CheckIfGameShouldBeFinished.

func (*MockGamesMockRecorder) FinishGame

func (mr *MockGamesMockRecorder) FinishGame(ctx, telegramChatID interface{}) *gomock.Call

FinishGame indicates an expected call of FinishGame.

func (*MockGamesMockRecorder) NewGame

func (mr *MockGamesMockRecorder) NewGame(ctx, telegramChatID interface{}) *gomock.Call

NewGame indicates an expected call of NewGame.

type MockLogger

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

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Error

func (m *MockLogger) Error(err error)

Error mocks base method.

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Error

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

Error indicates an expected call of Error.

type MockPlayers

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

MockPlayers is a mock of Players interface.

func NewMockPlayers

func NewMockPlayers(ctrl *gomock.Controller) *MockPlayers

NewMockPlayers creates a new mock instance.

func (*MockPlayers) AddNewPlayer

func (m *MockPlayers) AddNewPlayer(ctx context.Context, telegramChatID int64, player core.Player) error

AddNewPlayer mocks base method.

func (*MockPlayers) EXPECT

func (m *MockPlayers) EXPECT() *MockPlayersMockRecorder

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

func (*MockPlayers) GetPlayer

func (m *MockPlayers) GetPlayer(ctx context.Context, telegramChatID int64, username string) (*core.Player, error)

GetPlayer mocks base method.

func (*MockPlayers) StopDrawing

func (m *MockPlayers) StopDrawing(ctx context.Context, telegramChatID int64, player *core.Player) error

StopDrawing mocks base method.

type MockPlayersMockRecorder

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

MockPlayersMockRecorder is the mock recorder for MockPlayers.

func (*MockPlayersMockRecorder) AddNewPlayer

func (mr *MockPlayersMockRecorder) AddNewPlayer(ctx, telegramChatID, player interface{}) *gomock.Call

AddNewPlayer indicates an expected call of AddNewPlayer.

func (*MockPlayersMockRecorder) GetPlayer

func (mr *MockPlayersMockRecorder) GetPlayer(ctx, telegramChatID, username interface{}) *gomock.Call

GetPlayer indicates an expected call of GetPlayer.

func (*MockPlayersMockRecorder) StopDrawing

func (mr *MockPlayersMockRecorder) StopDrawing(ctx, telegramChatID, player interface{}) *gomock.Call

StopDrawing indicates an expected call of StopDrawing.

type MockStatistics

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

MockStatistics is a mock of Statistics interface.

func NewMockStatistics

func NewMockStatistics(ctrl *gomock.Controller) *MockStatistics

NewMockStatistics creates a new mock instance.

func (*MockStatistics) EXPECT

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

func (*MockStatistics) GetStatistics

func (m *MockStatistics) GetStatistics(ctx context.Context, telegramChatID int64) (core.UsersStatistics, error)

GetStatistics mocks base method.

func (*MockStatistics) IncrementStatistic

func (m *MockStatistics) IncrementStatistic(ctx context.Context, telegramChatID int64, gameResult core.UsersStatistics) error

IncrementStatistic mocks base method.

type MockStatisticsMockRecorder

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

MockStatisticsMockRecorder is the mock recorder for MockStatistics.

func (*MockStatisticsMockRecorder) GetStatistics

func (mr *MockStatisticsMockRecorder) GetStatistics(ctx, telegramChatID interface{}) *gomock.Call

GetStatistics indicates an expected call of GetStatistics.

func (*MockStatisticsMockRecorder) IncrementStatistic

func (mr *MockStatisticsMockRecorder) IncrementStatistic(ctx, telegramChatID, gameResult interface{}) *gomock.Call

IncrementStatistic indicates an expected call of IncrementStatistic.

Jump to

Keyboard shortcuts

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