Documentation ¶
Overview ¶
Package daomocks 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.