daomocks

package
v0.0.0-...-d13da26 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package daomocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserDAO

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

MockUserDAO is a mock of UserDAO interface.

func NewMockUserDAO

func NewMockUserDAO(ctrl *gomock.Controller) *MockUserDAO

NewMockUserDAO creates a new mock instance.

func (*MockUserDAO) EXPECT

func (m *MockUserDAO) EXPECT() *MockUserDAOMockRecorder

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

func (*MockUserDAO) FindByEmail

func (m *MockUserDAO) FindByEmail(ctx context.Context, email string) (dao.User, error)

FindByEmail mocks base method.

func (*MockUserDAO) FindById

func (m *MockUserDAO) FindById(ctx context.Context, id int64) (dao.User, error)

FindById mocks base method.

func (*MockUserDAO) FindByPhone

func (m *MockUserDAO) FindByPhone(ctx context.Context, phone string) (dao.User, error)

FindByPhone mocks base method.

func (*MockUserDAO) FindByWechat

func (m *MockUserDAO) FindByWechat(ctx context.Context, openID string) (dao.User, error)

FindByWechat mocks base method.

func (*MockUserDAO) Insert

func (m *MockUserDAO) Insert(ctx context.Context, u dao.User) error

Insert mocks base method.

type MockUserDAOMockRecorder

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

MockUserDAOMockRecorder is the mock recorder for MockUserDAO.

func (*MockUserDAOMockRecorder) FindByEmail

func (mr *MockUserDAOMockRecorder) FindByEmail(ctx, email interface{}) *gomock.Call

FindByEmail indicates an expected call of FindByEmail.

func (*MockUserDAOMockRecorder) FindById

func (mr *MockUserDAOMockRecorder) FindById(ctx, id interface{}) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockUserDAOMockRecorder) FindByPhone

func (mr *MockUserDAOMockRecorder) FindByPhone(ctx, phone interface{}) *gomock.Call

FindByPhone indicates an expected call of FindByPhone.

func (*MockUserDAOMockRecorder) FindByWechat

func (mr *MockUserDAOMockRecorder) FindByWechat(ctx, openID interface{}) *gomock.Call

FindByWechat indicates an expected call of FindByWechat.

func (*MockUserDAOMockRecorder) Insert

func (mr *MockUserDAOMockRecorder) Insert(ctx, u interface{}) *gomock.Call

Insert indicates an expected call of Insert.

Jump to

Keyboard shortcuts

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