mock_model

package
Version: v0.0.0-...-dbbace4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_model 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) EditAd

func (m *MockDB) EditAd(arg0 *model.AdItem) (int64, error)

EditAd mocks base method

func (*MockDB) EditUser

func (m *MockDB) EditUser(arg0 *model.User) (int64, error)

EditUser mocks base method

func (*MockDB) GetAd

func (m *MockDB) GetAd(arg0 int64) (*model.AdItem, error)

GetAd mocks base method

func (*MockDB) GetAds

func (m *MockDB) GetAds(arg0 *model.SearchParams) ([]*model.AdItem, error)

GetAds mocks base method

func (*MockDB) GetAdsOfUser

func (m *MockDB) GetAdsOfUser(arg0 int64) ([]*model.AdItem, error)

GetAdsOfUser mocks base method

func (*MockDB) GetUserWithEmail

func (m *MockDB) GetUserWithEmail(arg0 string) (*model.User, error)

GetUserWithEmail mocks base method

func (*MockDB) GetUserWithID

func (m *MockDB) GetUserWithID(arg0 int64) (*model.User, error)

GetUserWithID mocks base method

func (*MockDB) NewAd

func (m *MockDB) NewAd(arg0 *model.AdItem) (int64, error)

NewAd mocks base method

func (*MockDB) NewUser

func (m *MockDB) NewUser(arg0 *model.User) (int64, error)

NewUser mocks base method

func (*MockDB) RemoveAd

func (m *MockDB) RemoveAd(arg0 int64) (int64, error)

RemoveAd mocks base method

func (*MockDB) RemoveUser

func (m *MockDB) RemoveUser(arg0 int64) (int64, error)

RemoveUser mocks base method

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB

func (*MockDBMockRecorder) EditAd

func (mr *MockDBMockRecorder) EditAd(arg0 interface{}) *gomock.Call

EditAd indicates an expected call of EditAd

func (*MockDBMockRecorder) EditUser

func (mr *MockDBMockRecorder) EditUser(arg0 interface{}) *gomock.Call

EditUser indicates an expected call of EditUser

func (*MockDBMockRecorder) GetAd

func (mr *MockDBMockRecorder) GetAd(arg0 interface{}) *gomock.Call

GetAd indicates an expected call of GetAd

func (*MockDBMockRecorder) GetAds

func (mr *MockDBMockRecorder) GetAds(arg0 interface{}) *gomock.Call

GetAds indicates an expected call of GetAds

func (*MockDBMockRecorder) GetAdsOfUser

func (mr *MockDBMockRecorder) GetAdsOfUser(arg0 interface{}) *gomock.Call

GetAdsOfUser indicates an expected call of GetAdsOfUser

func (*MockDBMockRecorder) GetUserWithEmail

func (mr *MockDBMockRecorder) GetUserWithEmail(arg0 interface{}) *gomock.Call

GetUserWithEmail indicates an expected call of GetUserWithEmail

func (*MockDBMockRecorder) GetUserWithID

func (mr *MockDBMockRecorder) GetUserWithID(arg0 interface{}) *gomock.Call

GetUserWithID indicates an expected call of GetUserWithID

func (*MockDBMockRecorder) NewAd

func (mr *MockDBMockRecorder) NewAd(arg0 interface{}) *gomock.Call

NewAd indicates an expected call of NewAd

func (*MockDBMockRecorder) NewUser

func (mr *MockDBMockRecorder) NewUser(arg0 interface{}) *gomock.Call

NewUser indicates an expected call of NewUser

func (*MockDBMockRecorder) RemoveAd

func (mr *MockDBMockRecorder) RemoveAd(arg0 interface{}) *gomock.Call

RemoveAd indicates an expected call of RemoveAd

func (*MockDBMockRecorder) RemoveUser

func (mr *MockDBMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call

RemoveUser indicates an expected call of RemoveUser

type MockIM

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

MockIM is a mock of IM interface

func NewMockIM

func NewMockIM(ctrl *gomock.Controller) *MockIM

NewMockIM creates a new mock instance

func (*MockIM) DeleteImage

func (m *MockIM) DeleteImage(arg0 string) error

DeleteImage mocks base method

func (*MockIM) DownloadImage

func (m *MockIM) DownloadImage(arg0 string) error

DownloadImage mocks base method

func (*MockIM) EXPECT

func (m *MockIM) EXPECT() *MockIMMockRecorder

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

func (*MockIM) IsExist

func (m *MockIM) IsExist(arg0 string) bool

IsExist mocks base method

func (*MockIM) UploadImage

func (m *MockIM) UploadImage(arg0 string, arg1 io.Reader) (string, error)

UploadImage mocks base method

type MockIMMockRecorder

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

MockIMMockRecorder is the mock recorder for MockIM

func (*MockIMMockRecorder) DeleteImage

func (mr *MockIMMockRecorder) DeleteImage(arg0 interface{}) *gomock.Call

DeleteImage indicates an expected call of DeleteImage

func (*MockIMMockRecorder) DownloadImage

func (mr *MockIMMockRecorder) DownloadImage(arg0 interface{}) *gomock.Call

DownloadImage indicates an expected call of DownloadImage

func (*MockIMMockRecorder) IsExist

func (mr *MockIMMockRecorder) IsExist(arg0 interface{}) *gomock.Call

IsExist indicates an expected call of IsExist

func (*MockIMMockRecorder) UploadImage

func (mr *MockIMMockRecorder) UploadImage(arg0, arg1 interface{}) *gomock.Call

UploadImage indicates an expected call of UploadImage

type MockSM

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

MockSM is a mock of SM interface

func NewMockSM

func NewMockSM(ctrl *gomock.Controller) *MockSM

NewMockSM creates a new mock instance

func (*MockSM) CheckSession

func (m *MockSM) CheckSession(arg0 *model.SessionID) (*model.Session, error)

CheckSession mocks base method

func (*MockSM) CreateSession

func (m *MockSM) CreateSession(arg0 *model.Session, arg1 bool) (*model.SessionID, error)

CreateSession mocks base method

func (*MockSM) DeleteSession

func (m *MockSM) DeleteSession(arg0 *model.SessionID) error

DeleteSession mocks base method

func (*MockSM) EXPECT

func (m *MockSM) EXPECT() *MockSMMockRecorder

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

func (*MockSM) IsConnected

func (m *MockSM) IsConnected() bool

IsConnected mocks base method

func (*MockSM) TryReconnect

func (m *MockSM) TryReconnect() error

TryReconnect mocks base method

type MockSMMockRecorder

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

MockSMMockRecorder is the mock recorder for MockSM

func (*MockSMMockRecorder) CheckSession

func (mr *MockSMMockRecorder) CheckSession(arg0 interface{}) *gomock.Call

CheckSession indicates an expected call of CheckSession

func (*MockSMMockRecorder) CreateSession

func (mr *MockSMMockRecorder) CreateSession(arg0, arg1 interface{}) *gomock.Call

CreateSession indicates an expected call of CreateSession

func (*MockSMMockRecorder) DeleteSession

func (mr *MockSMMockRecorder) DeleteSession(arg0 interface{}) *gomock.Call

DeleteSession indicates an expected call of DeleteSession

func (*MockSMMockRecorder) IsConnected

func (mr *MockSMMockRecorder) IsConnected() *gomock.Call

IsConnected indicates an expected call of IsConnected

func (*MockSMMockRecorder) TryReconnect

func (mr *MockSMMockRecorder) TryReconnect() *gomock.Call

TryReconnect indicates an expected call of TryReconnect

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL