Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.
Index ¶
- type MockProductRepository
- func (m *MockProductRepository) Create(user *domain.Product) error
- func (m *MockProductRepository) Delete(id string) error
- func (m *MockProductRepository) EXPECT() *MockProductRepositoryMockRecorder
- func (m *MockProductRepository) Get(id string) (*domain.Product, error)
- func (m *MockProductRepository) List() ([]domain.Product, error)
- type MockProductRepositoryMockRecorder
- func (mr *MockProductRepositoryMockRecorder) Create(user interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) List() *gomock.Call
- type MockUserRepository
- func (m *MockUserRepository) Create(user *domain.User) error
- func (m *MockUserRepository) Delete(id string) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) Get(id string) (*domain.User, error)
- func (m *MockUserRepository) List() ([]domain.User, error)
- type MockUserRepositoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProductRepository ¶
type MockProductRepository struct {
// contains filtered or unexported fields
}
MockProductRepository is a mock of ProductRepository interface.
func NewMockProductRepository ¶
func NewMockProductRepository(ctrl *gomock.Controller) *MockProductRepository
NewMockProductRepository creates a new mock instance.
func (*MockProductRepository) Create ¶
func (m *MockProductRepository) Create(user *domain.Product) error
Create mocks base method.
func (*MockProductRepository) Delete ¶
func (m *MockProductRepository) Delete(id string) error
Delete mocks base method.
func (*MockProductRepository) EXPECT ¶
func (m *MockProductRepository) EXPECT() *MockProductRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockProductRepositoryMockRecorder ¶
type MockProductRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockProductRepositoryMockRecorder is the mock recorder for MockProductRepository.
func (*MockProductRepositoryMockRecorder) Create ¶
func (mr *MockProductRepositoryMockRecorder) Create(user interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockProductRepositoryMockRecorder) Delete ¶
func (mr *MockProductRepositoryMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockProductRepositoryMockRecorder) Get ¶
func (mr *MockProductRepositoryMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockProductRepositoryMockRecorder) List ¶
func (mr *MockProductRepositoryMockRecorder) List() *gomock.Call
List indicates an expected call of List.
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) Create ¶
func (m *MockUserRepository) Create(user *domain.User) error
Create mocks base method.
func (*MockUserRepository) Delete ¶
func (m *MockUserRepository) Delete(id string) error
Delete mocks base method.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) Create ¶
func (mr *MockUserRepositoryMockRecorder) Create(user interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepositoryMockRecorder) Delete ¶
func (mr *MockUserRepositoryMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserRepositoryMockRecorder) Get ¶
func (mr *MockUserRepositoryMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUserRepositoryMockRecorder) List ¶
func (mr *MockUserRepositoryMockRecorder) List() *gomock.Call
List indicates an expected call of List.