Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Index ¶
- type MockCards
- func (m *MockCards) AddCardToDealer(ctx context.Context, telegramChatID int64, card core.Card) error
- func (m *MockCards) AddCardToPlayer(ctx context.Context, telegramChatID int64, username string, card core.Card) error
- func (m *MockCards) DrawCardFromDeck(ctx context.Context, telegramChatID int64) (core.Card, error)
- func (m *MockCards) EXPECT() *MockCardsMockRecorder
- func (m *MockCards) SetNewDeck(ctx context.Context, telegramChatID int64, deck *core.Deck) error
- type MockCardsMockRecorder
- func (mr *MockCardsMockRecorder) AddCardToDealer(ctx, telegramChatID, card interface{}) *gomock.Call
- func (mr *MockCardsMockRecorder) AddCardToPlayer(ctx, telegramChatID, username, card interface{}) *gomock.Call
- func (mr *MockCardsMockRecorder) DrawCardFromDeck(ctx, telegramChatID interface{}) *gomock.Call
- func (mr *MockCardsMockRecorder) SetNewDeck(ctx, telegramChatID, deck interface{}) *gomock.Call
- type MockChats
- type MockChatsMockRecorder
- type MockGames
- func (m *MockGames) EXPECT() *MockGamesMockRecorder
- func (m *MockGames) GetActiveGame(ctx context.Context, telegramChatID int64) (*core.Game, error)
- func (m *MockGames) NullActiveGame(ctx context.Context, telegramChatID int64) error
- func (m *MockGames) SetActiveGame(ctx context.Context, telegramChatID int64, game core.Game) error
- type MockGamesMockRecorder
- type MockPlayers
- func (m *MockPlayers) AddNewPlayer(ctx context.Context, telegramChatID int64, player core.Player) error
- func (m *MockPlayers) EXPECT() *MockPlayersMockRecorder
- func (m *MockPlayers) GetPlayer(ctx context.Context, telegramChatID int64, username string) (*core.Player, error)
- func (m *MockPlayers) SetPlayerStopAndBusted(ctx context.Context, telegramChatID int64, player *core.Player) error
- type MockPlayersMockRecorder
- func (mr *MockPlayersMockRecorder) AddNewPlayer(ctx, telegramChatID, player interface{}) *gomock.Call
- func (mr *MockPlayersMockRecorder) GetPlayer(ctx, telegramChatID, username interface{}) *gomock.Call
- func (mr *MockPlayersMockRecorder) SetPlayerStopAndBusted(ctx, telegramChatID, player interface{}) *gomock.Call
- type MockStatistic
- type MockStatisticMockRecorder
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) AddCardToDealer ¶
func (m *MockCards) AddCardToDealer(ctx context.Context, telegramChatID int64, card core.Card) error
AddCardToDealer mocks base method.
func (*MockCards) AddCardToPlayer ¶
func (m *MockCards) AddCardToPlayer(ctx context.Context, telegramChatID int64, username string, card core.Card) error
AddCardToPlayer mocks base method.
func (*MockCards) DrawCardFromDeck ¶
DrawCardFromDeck 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) AddCardToDealer ¶
func (mr *MockCardsMockRecorder) AddCardToDealer(ctx, telegramChatID, card interface{}) *gomock.Call
AddCardToDealer indicates an expected call of AddCardToDealer.
func (*MockCardsMockRecorder) AddCardToPlayer ¶
func (mr *MockCardsMockRecorder) AddCardToPlayer(ctx, telegramChatID, username, card interface{}) *gomock.Call
AddCardToPlayer indicates an expected call of AddCardToPlayer.
func (*MockCardsMockRecorder) DrawCardFromDeck ¶
func (mr *MockCardsMockRecorder) DrawCardFromDeck(ctx, telegramChatID interface{}) *gomock.Call
DrawCardFromDeck indicates an expected call of DrawCardFromDeck.
func (*MockCardsMockRecorder) SetNewDeck ¶
func (mr *MockCardsMockRecorder) SetNewDeck(ctx, telegramChatID, deck interface{}) *gomock.Call
SetNewDeck indicates an expected call of SetNewDeck.
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 ¶
CheckChatExists mocks base method.
func (*MockChats) EXPECT ¶
func (m *MockChats) EXPECT() *MockChatsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) EXPECT ¶
func (m *MockGames) EXPECT() *MockGamesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGames) GetActiveGame ¶
GetActiveGame mocks base method.
func (*MockGames) NullActiveGame ¶
NullActiveGame mocks base method.
type MockGamesMockRecorder ¶
type MockGamesMockRecorder struct {
// contains filtered or unexported fields
}
MockGamesMockRecorder is the mock recorder for MockGames.
func (*MockGamesMockRecorder) GetActiveGame ¶
func (mr *MockGamesMockRecorder) GetActiveGame(ctx, telegramChatID interface{}) *gomock.Call
GetActiveGame indicates an expected call of GetActiveGame.
func (*MockGamesMockRecorder) NullActiveGame ¶
func (mr *MockGamesMockRecorder) NullActiveGame(ctx, telegramChatID interface{}) *gomock.Call
NullActiveGame indicates an expected call of NullActiveGame.
func (*MockGamesMockRecorder) SetActiveGame ¶
func (mr *MockGamesMockRecorder) SetActiveGame(ctx, telegramChatID, game interface{}) *gomock.Call
SetActiveGame indicates an expected call of SetActiveGame.
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) SetPlayerStopAndBusted ¶
func (m *MockPlayers) SetPlayerStopAndBusted(ctx context.Context, telegramChatID int64, player *core.Player) error
SetPlayerStopAndBusted 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) SetPlayerStopAndBusted ¶
func (mr *MockPlayersMockRecorder) SetPlayerStopAndBusted(ctx, telegramChatID, player interface{}) *gomock.Call
SetPlayerStopAndBusted indicates an expected call of SetPlayerStopAndBusted.
type MockStatistic ¶
type MockStatistic struct {
// contains filtered or unexported fields
}
MockStatistic is a mock of Statistic interface.
func NewMockStatistic ¶
func NewMockStatistic(ctrl *gomock.Controller) *MockStatistic
NewMockStatistic creates a new mock instance.
func (*MockStatistic) EXPECT ¶
func (m *MockStatistic) EXPECT() *MockStatisticMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStatistic) GetStatistics ¶
func (m *MockStatistic) GetStatistics(ctx context.Context, telegramChatID int64) (core.UsersStatistics, error)
GetStatistics mocks base method.
func (*MockStatistic) SetStatistics ¶
func (m *MockStatistic) SetStatistics(ctx context.Context, telegramChatID int64, stats core.UsersStatistics) error
SetStatistics mocks base method.
type MockStatisticMockRecorder ¶
type MockStatisticMockRecorder struct {
// contains filtered or unexported fields
}
MockStatisticMockRecorder is the mock recorder for MockStatistic.
func (*MockStatisticMockRecorder) GetStatistics ¶
func (mr *MockStatisticMockRecorder) GetStatistics(ctx, telegramChatID interface{}) *gomock.Call
GetStatistics indicates an expected call of GetStatistics.
func (*MockStatisticMockRecorder) SetStatistics ¶
func (mr *MockStatisticMockRecorder) SetStatistics(ctx, telegramChatID, stats interface{}) *gomock.Call
SetStatistics indicates an expected call of SetStatistics.