mock

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDao

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

MockDao is a mock of Dao interface

func NewMockDao

func NewMockDao(ctrl *gomock.Controller) *MockDao

NewMockDao creates a new mock instance

func (*MockDao) Close

func (m *MockDao) Close()

Close mocks base method

func (*MockDao) CreateUser

func (m *MockDao) CreateUser(arg0 context.Context, arg1 *model.User) error

CreateUser mocks base method

func (*MockDao) DeleteUser

func (m *MockDao) DeleteUser(arg0 context.Context, arg1 int64) error

DeleteUser mocks base method

func (*MockDao) EXPECT

func (m *MockDao) EXPECT() *MockDaoMockRecorder

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

func (*MockDao) Ping

func (m *MockDao) Ping(arg0 context.Context) error

Ping mocks base method

func (*MockDao) ReadPing added in v1.6.0

func (m *MockDao) ReadPing(arg0 context.Context, arg1 string) (*model.Ping, error)

ReadPing mocks base method

func (*MockDao) ReadUser

func (m *MockDao) ReadUser(arg0 context.Context, arg1 int64) (*model.User, error)

ReadUser mocks base method

func (*MockDao) UpdatePing added in v1.6.0

func (m *MockDao) UpdatePing(arg0 context.Context, arg1 *model.Ping) error

UpdatePing mocks base method

func (*MockDao) UpdateUser

func (m *MockDao) UpdateUser(arg0 context.Context, arg1 *model.User) error

UpdateUser mocks base method

type MockDaoMockRecorder

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

MockDaoMockRecorder is the mock recorder for MockDao

func (*MockDaoMockRecorder) Close

func (mr *MockDaoMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDaoMockRecorder) CreateUser

func (mr *MockDaoMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser

func (*MockDaoMockRecorder) DeleteUser

func (mr *MockDaoMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser

func (*MockDaoMockRecorder) Ping

func (mr *MockDaoMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockDaoMockRecorder) ReadPing added in v1.6.0

func (mr *MockDaoMockRecorder) ReadPing(arg0, arg1 interface{}) *gomock.Call

ReadPing indicates an expected call of ReadPing

func (*MockDaoMockRecorder) ReadUser

func (mr *MockDaoMockRecorder) ReadUser(arg0, arg1 interface{}) *gomock.Call

ReadUser indicates an expected call of ReadUser

func (*MockDaoMockRecorder) UpdatePing added in v1.6.0

func (mr *MockDaoMockRecorder) UpdatePing(arg0, arg1 interface{}) *gomock.Call

UpdatePing indicates an expected call of UpdatePing

func (*MockDaoMockRecorder) UpdateUser

func (mr *MockDaoMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser

Jump to

Keyboard shortcuts

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