mocks

package
v0.0.0-...-14c0c35 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_minesweepersvc is a generated GoMock package.

Package mock_minesweepersvc is a generated GoMock package.

Index

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

func (m *MockDB) Exists(key string) bool

Exists mocks base method

func (*MockDB) FlushAll

func (m *MockDB) FlushAll() error

FlushAll mocks base method

func (*MockDB) Get

func (m *MockDB) Get(key string) (*minesweepersvc.User, error)

Get mocks base method

func (*MockDB) GetGame

func (m *MockDB) GetGame(key string) (*minesweepersvc.Game, error)

GetGame mocks base method

func (*MockDB) Save

func (m *MockDB) Save(key string, value interface{}) error

Save 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

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

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

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

CreateUser mocks base method

func (*MockMineSweeperGameStorage) EXPECT

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

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

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

Jump to

Keyboard shortcuts

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