mock

package
v0.0.0-...-2cadb06 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 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 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) 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 any) *gomock.Call

FindByEmail indicates an expected call of FindByEmail.

func (*MockUserDaoMockRecorder) FindById

func (mr *MockUserDaoMockRecorder) FindById(ctx, id any) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockUserDaoMockRecorder) FindByPhone

func (mr *MockUserDaoMockRecorder) FindByPhone(ctx, phone any) *gomock.Call

FindByPhone indicates an expected call of FindByPhone.

func (*MockUserDaoMockRecorder) Insert

func (mr *MockUserDaoMockRecorder) Insert(ctx, u any) *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