Documentation ¶
Overview ¶
Package mock_user is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) AddFollower(ctx context.Context, userID, followerID string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, id string) (*entity.User, error)
- func (m *MockRepository) GetByUsername(ctx context.Context, username string) (*entity.User, error)
- func (m *MockRepository) Remove(ctx context.Context, id string) error
- func (m *MockRepository) Store(ctx context.Context, user *entity.User) (string, error)
- func (m *MockRepository) Update(ctx context.Context, user *entity.User) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AddFollower(ctx, userID, followerID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByUsername(ctx, username interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Remove(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Store(ctx, user interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) AddFollower ¶
func (m *MockRepository) AddFollower(ctx context.Context, userID, followerID string) error
AddFollower mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetByUsername ¶
GetByUsername mocks base method.
func (*MockRepository) Remove ¶
func (m *MockRepository) Remove(ctx context.Context, id string) error
Remove mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) AddFollower ¶
func (mr *MockRepositoryMockRecorder) AddFollower(ctx, userID, followerID interface{}) *gomock.Call
AddFollower indicates an expected call of AddFollower.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetByUsername ¶
func (mr *MockRepositoryMockRecorder) GetByUsername(ctx, username interface{}) *gomock.Call
GetByUsername indicates an expected call of GetByUsername.
func (*MockRepositoryMockRecorder) Remove ¶
func (mr *MockRepositoryMockRecorder) Remove(ctx, id interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockRepositoryMockRecorder) Store ¶
func (mr *MockRepositoryMockRecorder) Store(ctx, user interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.