Documentation
¶
Overview ¶
Package mock_order is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) AddProduct(ctx context.Context, p *entity.OrderProduct) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, id string) (*entity.Order, error)
- func (m *MockRepository) GetAllByUserID(ctx context.Context, userId string) (*[]entity.Order, error)
- func (m *MockRepository) GetProducts(ctx context.Context, id string) (*[]entity.OrderProductView, error)
- func (m *MockRepository) Remove(ctx context.Context, id string) error
- func (m *MockRepository) RemoveProduct(ctx context.Context, orderID, productID string) error
- func (m *MockRepository) Store(ctx context.Context, order *entity.Order) (string, error)
- func (m *MockRepository) Update(ctx context.Context, order *entity.Order) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AddProduct(ctx, p interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAllByUserID(ctx, userId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetProducts(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Remove(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) RemoveProduct(ctx, orderID, productID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Store(ctx, order interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, order 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) AddProduct ¶
func (m *MockRepository) AddProduct(ctx context.Context, p *entity.OrderProduct) error
AddProduct mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetAllByUserID ¶
func (m *MockRepository) GetAllByUserID(ctx context.Context, userId string) (*[]entity.Order, error)
GetAllByUserID mocks base method.
func (*MockRepository) GetProducts ¶
func (m *MockRepository) GetProducts(ctx context.Context, id string) (*[]entity.OrderProductView, error)
GetProducts mocks base method.
func (*MockRepository) Remove ¶
func (m *MockRepository) Remove(ctx context.Context, id string) error
Remove mocks base method.
func (*MockRepository) RemoveProduct ¶
func (m *MockRepository) RemoveProduct(ctx context.Context, orderID, productID string) error
RemoveProduct mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) AddProduct ¶
func (mr *MockRepositoryMockRecorder) AddProduct(ctx, p interface{}) *gomock.Call
AddProduct indicates an expected call of AddProduct.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetAllByUserID ¶
func (mr *MockRepositoryMockRecorder) GetAllByUserID(ctx, userId interface{}) *gomock.Call
GetAllByUserID indicates an expected call of GetAllByUserID.
func (*MockRepositoryMockRecorder) GetProducts ¶
func (mr *MockRepositoryMockRecorder) GetProducts(ctx, id interface{}) *gomock.Call
GetProducts indicates an expected call of GetProducts.
func (*MockRepositoryMockRecorder) Remove ¶
func (mr *MockRepositoryMockRecorder) Remove(ctx, id interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockRepositoryMockRecorder) RemoveProduct ¶
func (mr *MockRepositoryMockRecorder) RemoveProduct(ctx, orderID, productID interface{}) *gomock.Call
RemoveProduct indicates an expected call of RemoveProduct.
func (*MockRepositoryMockRecorder) Store ¶
func (mr *MockRepositoryMockRecorder) Store(ctx, order interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, order interface{}) *gomock.Call
Update indicates an expected call of Update.