Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockUserDao
- func (m *MockUserDao) EXPECT() *MockUserDaoMockRecorder
- func (m *MockUserDao) FindByEmail(ctx context.Context, email string) (dao.User, error)
- func (m *MockUserDao) FindById(ctx context.Context, id int64) (dao.User, error)
- func (m *MockUserDao) FindByPhone(ctx context.Context, phone string) (dao.User, error)
- func (m *MockUserDao) Insert(ctx context.Context, u dao.User) error
- type MockUserDaoMockRecorder
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 ¶
FindByEmail mocks base method.
func (*MockUserDao) FindByPhone ¶
FindByPhone 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.
Click to show internal directories.
Click to hide internal directories.