daomocks

package
v0.0.0-...-6ea431b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./webook/internal/repository/dao/article/gorm.go

Generated by this command:

mockgen -source=./webook/internal/repository/dao/article/gorm.go -package=daomocks -destination=./webook/internal/repository/dao/mocks/article.mock.go

Package daomocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./webook/internal/repository/dao/user.go

Generated by this command:

mockgen -source=./webook/internal/repository/dao/user.go -package=daomocks -destination=./webook/internal/repository/dao/mocks/user.mock.go

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.

func (*MockUserDAO) UpdateNonZeroFields

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

UpdateNonZeroFields 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) FindByWechat

func (mr *MockUserDAOMockRecorder) FindByWechat(ctx, openID any) *gomock.Call

FindByWechat indicates an expected call of FindByWechat.

func (*MockUserDAOMockRecorder) Insert

func (mr *MockUserDAOMockRecorder) Insert(ctx, u any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockUserDAOMockRecorder) UpdateNonZeroFields

func (mr *MockUserDAOMockRecorder) UpdateNonZeroFields(ctx, u any) *gomock.Call

UpdateNonZeroFields indicates an expected call of UpdateNonZeroFields.

Jump to

Keyboard shortcuts

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