Documentation ¶
Overview ¶
Package mock_model is a generated GoMock package.
Index ¶
- type MockUserModel
- func (m *MockUserModel) Delete(arg0 context.Context, arg1 string) error
- func (m *MockUserModel) EXPECT() *MockUserModelMockRecorder
- func (m *MockUserModel) FindOne(arg0 context.Context, arg1 string) (*model.User, error)
- func (m *MockUserModel) FindOneByAuth(arg0 context.Context, arg1 model.Auth) (*model.User, error)
- func (m *MockUserModel) Insert(arg0 context.Context, arg1 *model.User) error
- func (m *MockUserModel) Update(arg0 context.Context, arg1 *model.User) error
- type MockUserModelMockRecorder
- func (mr *MockUserModelMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserModelMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserModelMockRecorder) FindOneByAuth(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserModelMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserModelMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserModel ¶
type MockUserModel struct {
// contains filtered or unexported fields
}
MockUserModel is a mock of UserModel interface.
func NewMockUserModel ¶
func NewMockUserModel(ctrl *gomock.Controller) *MockUserModel
NewMockUserModel creates a new mock instance.
func (*MockUserModel) Delete ¶
func (m *MockUserModel) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method.
func (*MockUserModel) EXPECT ¶
func (m *MockUserModel) EXPECT() *MockUserModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserModel) FindOneByAuth ¶
FindOneByAuth mocks base method.
type MockUserModelMockRecorder ¶
type MockUserModelMockRecorder struct {
// contains filtered or unexported fields
}
MockUserModelMockRecorder is the mock recorder for MockUserModel.
func (*MockUserModelMockRecorder) Delete ¶
func (mr *MockUserModelMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserModelMockRecorder) FindOne ¶
func (mr *MockUserModelMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockUserModelMockRecorder) FindOneByAuth ¶
func (mr *MockUserModelMockRecorder) FindOneByAuth(arg0, arg1 interface{}) *gomock.Call
FindOneByAuth indicates an expected call of FindOneByAuth.
func (*MockUserModelMockRecorder) Insert ¶
func (mr *MockUserModelMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockUserModelMockRecorder) Update ¶
func (mr *MockUserModelMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
Click to show internal directories.
Click to hide internal directories.