Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockIUser
- func (m *MockIUser) DeleteByID(arg0 bson.ObjectId) error
- func (m *MockIUser) EXPECT() *MockIUserMockRecorder
- func (m *MockIUser) GetByID(arg0 bson.ObjectId) (*model.User, error)
- func (m *MockIUser) Paginate(arg0 bson.M, arg1, arg2 int) ([]*model.User, *golang_odm.PaginationInfo, error)
- func (m *MockIUser) Save(arg0 *model.User) error
- type MockIUserMockRecorder
- func (mr *MockIUserMockRecorder) DeleteByID(arg0 interface{}) *gomock.Call
- func (mr *MockIUserMockRecorder) GetByID(arg0 interface{}) *gomock.Call
- func (mr *MockIUserMockRecorder) Paginate(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIUserMockRecorder) Save(arg0 interface{}) *gomock.Call
- type MockIUserService
- func (m *MockIUserService) Create(arg0 *model.User) error
- func (m *MockIUserService) DeleteByID(arg0 bson.ObjectId) error
- func (m *MockIUserService) EXPECT() *MockIUserServiceMockRecorder
- func (m *MockIUserService) FindByIdAndReplace(arg0 bson.ObjectId, arg1 *model.User) error
- func (m *MockIUserService) GetByID(arg0 bson.ObjectId) (*model.User, error)
- func (m *MockIUserService) Paginate(arg0 service.PaginationOptions) ([]*model.User, *golang_odm.PaginationInfo, error)
- type MockIUserServiceMockRecorder
- func (mr *MockIUserServiceMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockIUserServiceMockRecorder) DeleteByID(arg0 interface{}) *gomock.Call
- func (mr *MockIUserServiceMockRecorder) FindByIdAndReplace(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIUserServiceMockRecorder) GetByID(arg0 interface{}) *gomock.Call
- func (mr *MockIUserServiceMockRecorder) Paginate(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIUser ¶
type MockIUser struct {
// contains filtered or unexported fields
}
MockIUser is a mock of IUser interface
func NewMockIUser ¶
func NewMockIUser(ctrl *gomock.Controller) *MockIUser
NewMockIUser creates a new mock instance
func (*MockIUser) DeleteByID ¶
DeleteByID mocks base method
func (*MockIUser) EXPECT ¶
func (m *MockIUser) EXPECT() *MockIUserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockIUserMockRecorder ¶
type MockIUserMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserMockRecorder is the mock recorder for MockIUser
func (*MockIUserMockRecorder) DeleteByID ¶
func (mr *MockIUserMockRecorder) DeleteByID(arg0 interface{}) *gomock.Call
DeleteByID indicates an expected call of DeleteByID
func (*MockIUserMockRecorder) GetByID ¶
func (mr *MockIUserMockRecorder) GetByID(arg0 interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockIUserMockRecorder) Paginate ¶
func (mr *MockIUserMockRecorder) Paginate(arg0, arg1, arg2 interface{}) *gomock.Call
Paginate indicates an expected call of Paginate
func (*MockIUserMockRecorder) Save ¶
func (mr *MockIUserMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save
type MockIUserService ¶
type MockIUserService struct {
// contains filtered or unexported fields
}
MockIUserService is a mock of IUserService interface
func NewMockIUserService ¶
func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService
NewMockIUserService creates a new mock instance
func (*MockIUserService) Create ¶
func (m *MockIUserService) Create(arg0 *model.User) error
Create mocks base method
func (*MockIUserService) DeleteByID ¶
func (m *MockIUserService) DeleteByID(arg0 bson.ObjectId) error
DeleteByID mocks base method
func (*MockIUserService) EXPECT ¶
func (m *MockIUserService) EXPECT() *MockIUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIUserService) FindByIdAndReplace ¶
FindByIdAndReplace mocks base method
func (*MockIUserService) Paginate ¶
func (m *MockIUserService) Paginate(arg0 service.PaginationOptions) ([]*model.User, *golang_odm.PaginationInfo, error)
Paginate mocks base method
type MockIUserServiceMockRecorder ¶
type MockIUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserServiceMockRecorder is the mock recorder for MockIUserService
func (*MockIUserServiceMockRecorder) Create ¶
func (mr *MockIUserServiceMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockIUserServiceMockRecorder) DeleteByID ¶
func (mr *MockIUserServiceMockRecorder) DeleteByID(arg0 interface{}) *gomock.Call
DeleteByID indicates an expected call of DeleteByID
func (*MockIUserServiceMockRecorder) FindByIdAndReplace ¶
func (mr *MockIUserServiceMockRecorder) FindByIdAndReplace(arg0, arg1 interface{}) *gomock.Call
FindByIdAndReplace indicates an expected call of FindByIdAndReplace
func (*MockIUserServiceMockRecorder) GetByID ¶
func (mr *MockIUserServiceMockRecorder) GetByID(arg0 interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockIUserServiceMockRecorder) Paginate ¶
func (mr *MockIUserServiceMockRecorder) Paginate(arg0 interface{}) *gomock.Call
Paginate indicates an expected call of Paginate