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) 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)
- type MockRepositoryMockRecorder
- type MockService
- 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) SearchUser ¶
func (m *MockRepository) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
SearchUser mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
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.
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.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
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.