daomocks

package
v0.0.0-...-c234f5e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 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) 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