Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockInteractor
- func (m *MockInteractor) DeleteUser(ctx context.Context, u *ent.User) error
- func (m *MockInteractor) EXPECT() *MockInteractorMockRecorder
- func (m *MockInteractor) FindUserByID(ctx context.Context, id int64) (*ent.User, error)
- func (m *MockInteractor) GetRateLimit(ctx context.Context, u *ent.User) (*extent.RateLimit, error)
- func (m *MockInteractor) SearchUsers(ctx context.Context, opts *interactor.SearchUsersOptions) ([]*ent.User, error)
- func (m *MockInteractor) UpdateUser(ctx context.Context, u *ent.User) (*ent.User, error)
- type MockInteractorMockRecorder
- func (mr *MockInteractorMockRecorder) DeleteUser(ctx, u interface{}) *gomock.Call
- func (mr *MockInteractorMockRecorder) FindUserByID(ctx, id interface{}) *gomock.Call
- func (mr *MockInteractorMockRecorder) GetRateLimit(ctx, u interface{}) *gomock.Call
- func (mr *MockInteractorMockRecorder) SearchUsers(ctx, opts interface{}) *gomock.Call
- func (mr *MockInteractorMockRecorder) UpdateUser(ctx, u interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInteractor ¶
type MockInteractor struct {
// contains filtered or unexported fields
}
MockInteractor is a mock of Interactor interface.
func NewMockInteractor ¶
func NewMockInteractor(ctrl *gomock.Controller) *MockInteractor
NewMockInteractor creates a new mock instance.
func (*MockInteractor) DeleteUser ¶
DeleteUser mocks base method.
func (*MockInteractor) EXPECT ¶
func (m *MockInteractor) EXPECT() *MockInteractorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInteractor) FindUserByID ¶
FindUserByID mocks base method.
func (*MockInteractor) GetRateLimit ¶
GetRateLimit mocks base method.
func (*MockInteractor) SearchUsers ¶
func (m *MockInteractor) SearchUsers(ctx context.Context, opts *interactor.SearchUsersOptions) ([]*ent.User, error)
SearchUsers mocks base method.
func (*MockInteractor) UpdateUser ¶
UpdateUser mocks base method.
type MockInteractorMockRecorder ¶
type MockInteractorMockRecorder struct {
// contains filtered or unexported fields
}
MockInteractorMockRecorder is the mock recorder for MockInteractor.
func (*MockInteractorMockRecorder) DeleteUser ¶
func (mr *MockInteractorMockRecorder) DeleteUser(ctx, u interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockInteractorMockRecorder) FindUserByID ¶
func (mr *MockInteractorMockRecorder) FindUserByID(ctx, id interface{}) *gomock.Call
FindUserByID indicates an expected call of FindUserByID.
func (*MockInteractorMockRecorder) GetRateLimit ¶
func (mr *MockInteractorMockRecorder) GetRateLimit(ctx, u interface{}) *gomock.Call
GetRateLimit indicates an expected call of GetRateLimit.
func (*MockInteractorMockRecorder) SearchUsers ¶
func (mr *MockInteractorMockRecorder) SearchUsers(ctx, opts interface{}) *gomock.Call
SearchUsers indicates an expected call of SearchUsers.
func (*MockInteractorMockRecorder) UpdateUser ¶
func (mr *MockInteractorMockRecorder) UpdateUser(ctx, u interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.