Documentation ¶
Overview ¶
Package mock_minesweepersvc is a generated GoMock package.
Package mock_minesweepersvc is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Exists(key string) bool
- func (m *MockDB) FlushAll() error
- func (m *MockDB) Get(key string) (*minesweepersvc.User, error)
- func (m *MockDB) GetGame(key string) (*minesweepersvc.Game, error)
- func (m *MockDB) Save(key string, value interface{}) error
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Exists(key interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) FlushAll() *gomock.Call
- func (mr *MockDBMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetGame(key interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Save(key, value interface{}) *gomock.Call
- type MockMineSweeperGameService
- func (m *MockMineSweeperGameService) Click(name, clickType string, i, j int) (*minesweepersvc.Game, error)
- func (m *MockMineSweeperGameService) CreateGame(game *minesweepersvc.Game) error
- func (m *MockMineSweeperGameService) CreateUser(user *minesweepersvc.User) error
- func (m *MockMineSweeperGameService) EXPECT() *MockMineSweeperGameServiceMockRecorder
- func (m *MockMineSweeperGameService) FlushAll() error
- func (m *MockMineSweeperGameService) GetUser(username string) (*minesweepersvc.User, error)
- func (m *MockMineSweeperGameService) Start(name string) (*minesweepersvc.Game, error)
- type MockMineSweeperGameServiceMockRecorder
- func (mr *MockMineSweeperGameServiceMockRecorder) Click(name, clickType, i, j interface{}) *gomock.Call
- func (mr *MockMineSweeperGameServiceMockRecorder) CreateGame(game interface{}) *gomock.Call
- func (mr *MockMineSweeperGameServiceMockRecorder) CreateUser(user interface{}) *gomock.Call
- func (mr *MockMineSweeperGameServiceMockRecorder) FlushAll() *gomock.Call
- func (mr *MockMineSweeperGameServiceMockRecorder) GetUser(username interface{}) *gomock.Call
- func (mr *MockMineSweeperGameServiceMockRecorder) Start(name interface{}) *gomock.Call
- type MockMineSweeperGameStorage
- func (m *MockMineSweeperGameStorage) CreateGame(game *minesweepersvc.Game) error
- func (m *MockMineSweeperGameStorage) CreateUser(u *minesweepersvc.User) error
- func (m *MockMineSweeperGameStorage) EXPECT() *MockMineSweeperGameStorageMockRecorder
- func (m *MockMineSweeperGameStorage) FlushAll() error
- func (m *MockMineSweeperGameStorage) GetGame(name string) (*minesweepersvc.Game, error)
- func (m *MockMineSweeperGameStorage) GetUser(username string) (*minesweepersvc.User, error)
- func (m *MockMineSweeperGameStorage) UpdateGame(game *minesweepersvc.Game) error
- type MockMineSweeperGameStorageMockRecorder
- func (mr *MockMineSweeperGameStorageMockRecorder) CreateGame(game interface{}) *gomock.Call
- func (mr *MockMineSweeperGameStorageMockRecorder) CreateUser(u interface{}) *gomock.Call
- func (mr *MockMineSweeperGameStorageMockRecorder) FlushAll() *gomock.Call
- func (mr *MockMineSweeperGameStorageMockRecorder) GetGame(name interface{}) *gomock.Call
- func (mr *MockMineSweeperGameStorageMockRecorder) GetUser(username interface{}) *gomock.Call
- func (mr *MockMineSweeperGameStorageMockRecorder) Update(game interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDB) Get ¶
func (m *MockDB) Get(key string) (*minesweepersvc.User, error)
Get mocks base method
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) Exists ¶
func (mr *MockDBMockRecorder) Exists(key interface{}) *gomock.Call
Exists indicates an expected call of Exists
func (*MockDBMockRecorder) FlushAll ¶
func (mr *MockDBMockRecorder) FlushAll() *gomock.Call
FlushAll indicates an expected call of FlushAll
func (*MockDBMockRecorder) Get ¶
func (mr *MockDBMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockDBMockRecorder) GetGame ¶
func (mr *MockDBMockRecorder) GetGame(key interface{}) *gomock.Call
GetGame indicates an expected call of GetGame
func (*MockDBMockRecorder) Save ¶
func (mr *MockDBMockRecorder) Save(key, value interface{}) *gomock.Call
Save indicates an expected call of Save
type MockMineSweeperGameService ¶
type MockMineSweeperGameService struct {
// contains filtered or unexported fields
}
MockMineSweeperGameService is a mock of MineSweeperGameService interface
func NewMockMineSweeperGameService ¶
func NewMockMineSweeperGameService(ctrl *gomock.Controller) *MockMineSweeperGameService
NewMockMineSweeperGameService creates a new mock instance
func (*MockMineSweeperGameService) Click ¶
func (m *MockMineSweeperGameService) Click(name, clickType string, i, j int) (*minesweepersvc.Game, error)
Click mocks base method
func (*MockMineSweeperGameService) CreateGame ¶
func (m *MockMineSweeperGameService) CreateGame(game *minesweepersvc.Game) error
CreateGame mocks base method
func (*MockMineSweeperGameService) CreateUser ¶
func (m *MockMineSweeperGameService) CreateUser(user *minesweepersvc.User) error
CreateUser mocks base method
func (*MockMineSweeperGameService) EXPECT ¶
func (m *MockMineSweeperGameService) EXPECT() *MockMineSweeperGameServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMineSweeperGameService) FlushAll ¶
func (m *MockMineSweeperGameService) FlushAll() error
FlushAll mocks base method
func (*MockMineSweeperGameService) GetUser ¶
func (m *MockMineSweeperGameService) GetUser(username string) (*minesweepersvc.User, error)
GetUser mocks base method
func (*MockMineSweeperGameService) Start ¶
func (m *MockMineSweeperGameService) Start(name string) (*minesweepersvc.Game, error)
Start mocks base method
type MockMineSweeperGameServiceMockRecorder ¶
type MockMineSweeperGameServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMineSweeperGameServiceMockRecorder is the mock recorder for MockMineSweeperGameService
func (*MockMineSweeperGameServiceMockRecorder) Click ¶
func (mr *MockMineSweeperGameServiceMockRecorder) Click(name, clickType, i, j interface{}) *gomock.Call
Click indicates an expected call of Click
func (*MockMineSweeperGameServiceMockRecorder) CreateGame ¶
func (mr *MockMineSweeperGameServiceMockRecorder) CreateGame(game interface{}) *gomock.Call
CreateGame indicates an expected call of CreateGame
func (*MockMineSweeperGameServiceMockRecorder) CreateUser ¶
func (mr *MockMineSweeperGameServiceMockRecorder) CreateUser(user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser
func (*MockMineSweeperGameServiceMockRecorder) FlushAll ¶
func (mr *MockMineSweeperGameServiceMockRecorder) FlushAll() *gomock.Call
FlushAll indicates an expected call of FlushAll
func (*MockMineSweeperGameServiceMockRecorder) GetUser ¶
func (mr *MockMineSweeperGameServiceMockRecorder) GetUser(username interface{}) *gomock.Call
GetUser indicates an expected call of GetUser
func (*MockMineSweeperGameServiceMockRecorder) Start ¶
func (mr *MockMineSweeperGameServiceMockRecorder) Start(name interface{}) *gomock.Call
Start indicates an expected call of Start
type MockMineSweeperGameStorage ¶
type MockMineSweeperGameStorage struct {
// contains filtered or unexported fields
}
MockMineSweeperGameStorage is a mock of MineSweeperGameStorage interface
func NewMockMineSweeperGameStorage ¶
func NewMockMineSweeperGameStorage(ctrl *gomock.Controller) *MockMineSweeperGameStorage
NewMockMineSweeperGameStorage creates a new mock instance
func (*MockMineSweeperGameStorage) CreateGame ¶
func (m *MockMineSweeperGameStorage) CreateGame(game *minesweepersvc.Game) error
CreateGame mocks base method
func (*MockMineSweeperGameStorage) CreateUser ¶
func (m *MockMineSweeperGameStorage) CreateUser(u *minesweepersvc.User) error
CreateUser mocks base method
func (*MockMineSweeperGameStorage) EXPECT ¶
func (m *MockMineSweeperGameStorage) EXPECT() *MockMineSweeperGameStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMineSweeperGameStorage) FlushAll ¶
func (m *MockMineSweeperGameStorage) FlushAll() error
FlushAll mocks base method
func (*MockMineSweeperGameStorage) GetGame ¶
func (m *MockMineSweeperGameStorage) GetGame(name string) (*minesweepersvc.Game, error)
GetGame mocks base method
func (*MockMineSweeperGameStorage) GetUser ¶
func (m *MockMineSweeperGameStorage) GetUser(username string) (*minesweepersvc.User, error)
GetUser mocks base method
func (*MockMineSweeperGameStorage) UpdateGame ¶
func (m *MockMineSweeperGameStorage) UpdateGame(game *minesweepersvc.Game) error
UpdateGame mocks base method
type MockMineSweeperGameStorageMockRecorder ¶
type MockMineSweeperGameStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockMineSweeperGameStorageMockRecorder is the mock recorder for MockMineSweeperGameStorage
func (*MockMineSweeperGameStorageMockRecorder) CreateGame ¶
func (mr *MockMineSweeperGameStorageMockRecorder) CreateGame(game interface{}) *gomock.Call
CreateGame indicates an expected call of CreateGame
func (*MockMineSweeperGameStorageMockRecorder) CreateUser ¶
func (mr *MockMineSweeperGameStorageMockRecorder) CreateUser(u interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser
func (*MockMineSweeperGameStorageMockRecorder) FlushAll ¶
func (mr *MockMineSweeperGameStorageMockRecorder) FlushAll() *gomock.Call
FlushAll indicates an expected call of FlushAll
func (*MockMineSweeperGameStorageMockRecorder) GetGame ¶
func (mr *MockMineSweeperGameStorageMockRecorder) GetGame(name interface{}) *gomock.Call
GetGame indicates an expected call of GetGame
func (*MockMineSweeperGameStorageMockRecorder) GetUser ¶
func (mr *MockMineSweeperGameStorageMockRecorder) GetUser(username interface{}) *gomock.Call
GetUser indicates an expected call of GetUser
func (*MockMineSweeperGameStorageMockRecorder) Update ¶
func (mr *MockMineSweeperGameStorageMockRecorder) Update(game interface{}) *gomock.Call
UpdateGame indicates an expected call of UpdateGame