Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) FullUpdate(params *profile.FullUpdateParams) (profile.Profile, error)
- func (m *MockRepository) GetProfileByUser(userId int) (profile.Profile, error)
- func (m *MockRepository) IsUsernameAvailable(username string, userId int) (bool, error)
- func (m *MockRepository) PartialUpdate(params *profile.PartialUpdateParams) (profile.Profile, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) FullUpdate(params interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetProfileByUser(userId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) IsUsernameAvailable(username, userId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) PartialUpdate(params interface{}) *gomock.Call
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) FullUpdate(params *profile.FullUpdateParams) (profile.Profile, error)
- func (m *MockService) GetProfileByUser(userId int) (profile.Profile, error)
- func (m *MockService) PartialUpdate(params *profile.PartialUpdateParams) (profile.Profile, error)
- type MockServiceMockRecorder
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) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) FullUpdate ¶
func (m *MockRepository) FullUpdate(params *profile.FullUpdateParams) (profile.Profile, error)
FullUpdate mocks base method.
func (*MockRepository) GetProfileByUser ¶
func (m *MockRepository) GetProfileByUser(userId int) (profile.Profile, error)
GetProfileByUser mocks base method.
func (*MockRepository) IsUsernameAvailable ¶
func (m *MockRepository) IsUsernameAvailable(username string, userId int) (bool, error)
IsUsernameAvailable mocks base method.
func (*MockRepository) PartialUpdate ¶
func (m *MockRepository) PartialUpdate(params *profile.PartialUpdateParams) (profile.Profile, error)
PartialUpdate mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) FullUpdate ¶
func (mr *MockRepositoryMockRecorder) FullUpdate(params interface{}) *gomock.Call
FullUpdate indicates an expected call of FullUpdate.
func (*MockRepositoryMockRecorder) GetProfileByUser ¶
func (mr *MockRepositoryMockRecorder) GetProfileByUser(userId interface{}) *gomock.Call
GetProfileByUser indicates an expected call of GetProfileByUser.
func (*MockRepositoryMockRecorder) IsUsernameAvailable ¶
func (mr *MockRepositoryMockRecorder) IsUsernameAvailable(username, userId interface{}) *gomock.Call
IsUsernameAvailable indicates an expected call of IsUsernameAvailable.
func (*MockRepositoryMockRecorder) PartialUpdate ¶
func (mr *MockRepositoryMockRecorder) PartialUpdate(params interface{}) *gomock.Call
PartialUpdate indicates an expected call of PartialUpdate.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) FullUpdate ¶
func (m *MockService) FullUpdate(params *profile.FullUpdateParams) (profile.Profile, error)
FullUpdate mocks base method.
func (*MockService) GetProfileByUser ¶
func (m *MockService) GetProfileByUser(userId int) (profile.Profile, error)
GetProfileByUser mocks base method.
func (*MockService) PartialUpdate ¶
func (m *MockService) PartialUpdate(params *profile.PartialUpdateParams) (profile.Profile, error)
PartialUpdate mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) FullUpdate ¶
func (mr *MockServiceMockRecorder) FullUpdate(params interface{}) *gomock.Call
FullUpdate indicates an expected call of FullUpdate.
func (*MockServiceMockRecorder) GetProfileByUser ¶
func (mr *MockServiceMockRecorder) GetProfileByUser(userId interface{}) *gomock.Call
GetProfileByUser indicates an expected call of GetProfileByUser.
func (*MockServiceMockRecorder) PartialUpdate ¶
func (mr *MockServiceMockRecorder) PartialUpdate(params interface{}) *gomock.Call
PartialUpdate indicates an expected call of PartialUpdate.