Documentation
¶
Overview ¶
Package mock_product is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) AddPrice(ctx context.Context, productId string, price *entity.Price) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, id string) (*entity.Product, error)
- func (m *MockRepository) GetAll(ctx context.Context) (*[]entity.Product, error)
- func (m *MockRepository) GetPrices(ctx context.Context, id string) (*[]entity.Price, error)
- func (m *MockRepository) Remove(ctx context.Context, id string) error
- func (m *MockRepository) Store(ctx context.Context, product *entity.Product) (string, error)
- func (m *MockRepository) StoreWithPrices(ctx context.Context, product *entity.Product) (string, error)
- func (m *MockRepository) Update(ctx context.Context, id string, input *entity.ProductUpdateInput) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AddPrice(ctx, productId, price interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAll(ctx interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetPrices(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Remove(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Store(ctx, product interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) StoreWithPrices(ctx, product interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, id, input 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) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) Remove ¶
func (m *MockRepository) Remove(ctx context.Context, id string) error
Remove mocks base method.
func (*MockRepository) StoreWithPrices ¶
func (m *MockRepository) StoreWithPrices(ctx context.Context, product *entity.Product) (string, error)
StoreWithPrices mocks base method.
func (*MockRepository) Update ¶
func (m *MockRepository) Update(ctx context.Context, id string, input *entity.ProductUpdateInput) error
Update mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) AddPrice ¶
func (mr *MockRepositoryMockRecorder) AddPrice(ctx, productId, price interface{}) *gomock.Call
AddPrice indicates an expected call of AddPrice.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetAll ¶
func (mr *MockRepositoryMockRecorder) GetAll(ctx interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockRepositoryMockRecorder) GetPrices ¶
func (mr *MockRepositoryMockRecorder) GetPrices(ctx, id interface{}) *gomock.Call
GetPrices indicates an expected call of GetPrices.
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, product interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockRepositoryMockRecorder) StoreWithPrices ¶
func (mr *MockRepositoryMockRecorder) StoreWithPrices(ctx, product interface{}) *gomock.Call
StoreWithPrices indicates an expected call of StoreWithPrices.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, id, input interface{}) *gomock.Call
Update indicates an expected call of Update.