Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDB
- type MockDBMockRecorder
- type MockUsers
- func (m *MockUsers) CreateUser(arg0 context.Context, arg1 *model.User) (*model.User, error)
- func (m *MockUsers) DeleteUser(arg0 context.Context, arg1 string) error
- func (m *MockUsers) EXPECT() *MockUsersMockRecorder
- func (m *MockUsers) FindUsers(arg0 context.Context, arg1 []model.Filter, arg2, arg3 int64) ([]*model.User, error)
- func (m *MockUsers) GetUser(arg0 context.Context, arg1 string) (*model.User, error)
- func (m *MockUsers) UpdateUser(arg0 context.Context, arg1 *model.User) (*model.User, error)
- type MockUsersMockRecorder
- func (mr *MockUsersMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUsersMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUsersMockRecorder) FindUsers(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockUsersMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUsersMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) PingContext ¶
func (mr *MockDBMockRecorder) PingContext(arg0 interface{}) *gomock.Call
PingContext indicates an expected call of PingContext.
type MockUsers ¶
type MockUsers struct {
// contains filtered or unexported fields
}
MockUsers is a mock of Users interface.
func NewMockUsers ¶
func NewMockUsers(ctrl *gomock.Controller) *MockUsers
NewMockUsers creates a new mock instance.
func (*MockUsers) CreateUser ¶
CreateUser mocks base method.
func (*MockUsers) DeleteUser ¶
DeleteUser mocks base method.
func (*MockUsers) EXPECT ¶
func (m *MockUsers) EXPECT() *MockUsersMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsers) FindUsers ¶
func (m *MockUsers) FindUsers(arg0 context.Context, arg1 []model.Filter, arg2, arg3 int64) ([]*model.User, error)
FindUsers mocks base method.
type MockUsersMockRecorder ¶
type MockUsersMockRecorder struct {
// contains filtered or unexported fields
}
MockUsersMockRecorder is the mock recorder for MockUsers.
func (*MockUsersMockRecorder) CreateUser ¶
func (mr *MockUsersMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockUsersMockRecorder) DeleteUser ¶
func (mr *MockUsersMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockUsersMockRecorder) FindUsers ¶
func (mr *MockUsersMockRecorder) FindUsers(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
FindUsers indicates an expected call of FindUsers.
func (*MockUsersMockRecorder) GetUser ¶
func (mr *MockUsersMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockUsersMockRecorder) UpdateUser ¶
func (mr *MockUsersMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.