Documentation ¶
Overview ¶
Package mock_user is a generated GoMock package.
Package mock_user is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) FindByID(ctx context.Context, id string) (*domain.User, error)
- func (m *MockRepository) FindUser(ctx context.Context, username string) (*domain.User, error)
- func (m *MockRepository) SaveUser(ctx context.Context, user *domain.User) error
- func (m *MockRepository) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
- func (m *MockRepository) UpdateUser(ctx context.Context, user *domain.User) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) FindByID(ctx, id any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) FindUser(ctx, username any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SaveUser(ctx, user any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SearchUser(ctx, specification any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateUser(ctx, user any) *gomock.Call
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) FindUser(ctx context.Context, userName string) (*domain.User, error)
- func (m *MockService) SaveUser(ctx context.Context, user *domain.User) error
- func (m *MockService) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
- func (m *MockService) UpdateUser(ctx context.Context, user *domain.User) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) FindUser(ctx, userName any) *gomock.Call
- func (mr *MockServiceMockRecorder) SaveUser(ctx, user any) *gomock.Call
- func (mr *MockServiceMockRecorder) SearchUser(ctx, specification any) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateUser(ctx, user any) *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) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) SearchUser ¶
func (m *MockRepository) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
SearchUser mocks base method.
func (*MockRepository) UpdateUser ¶
UpdateUser mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) FindByID ¶
func (mr *MockRepositoryMockRecorder) FindByID(ctx, id any) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockRepositoryMockRecorder) FindUser ¶
func (mr *MockRepositoryMockRecorder) FindUser(ctx, username any) *gomock.Call
FindUser indicates an expected call of FindUser.
func (*MockRepositoryMockRecorder) SaveUser ¶
func (mr *MockRepositoryMockRecorder) SaveUser(ctx, user any) *gomock.Call
SaveUser indicates an expected call of SaveUser.
func (*MockRepositoryMockRecorder) SearchUser ¶
func (mr *MockRepositoryMockRecorder) SearchUser(ctx, specification any) *gomock.Call
SearchUser indicates an expected call of SearchUser.
func (*MockRepositoryMockRecorder) UpdateUser ¶
func (mr *MockRepositoryMockRecorder) UpdateUser(ctx, user any) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
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) SearchUser ¶
func (m *MockService) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
SearchUser mocks base method.
func (*MockService) UpdateUser ¶
UpdateUser mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) FindUser ¶
func (mr *MockServiceMockRecorder) FindUser(ctx, userName any) *gomock.Call
FindUser indicates an expected call of FindUser.
func (*MockServiceMockRecorder) SaveUser ¶
func (mr *MockServiceMockRecorder) SaveUser(ctx, user any) *gomock.Call
SaveUser indicates an expected call of SaveUser.
func (*MockServiceMockRecorder) SearchUser ¶
func (mr *MockServiceMockRecorder) SearchUser(ctx, specification any) *gomock.Call
SearchUser indicates an expected call of SearchUser.
func (*MockServiceMockRecorder) UpdateUser ¶
func (mr *MockServiceMockRecorder) UpdateUser(ctx, user any) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.