Documentation ¶
Overview ¶
Package mock_handlers is a generated GoMock package.
Index ¶
- type MockProductRepo
- func (m *MockProductRepo) All(arg0 context.Context) (*[]models.Product, error)
- func (m *MockProductRepo) Create(arg0 context.Context, arg1 *models.Product) error
- func (m *MockProductRepo) Destroy(arg0 context.Context, arg1 int) error
- func (m *MockProductRepo) EXPECT() *MockProductRepoMockRecorder
- func (m *MockProductRepo) Find(arg0 context.Context, arg1 int) (*models.Product, error)
- func (m *MockProductRepo) Update(arg0 context.Context, arg1 *models.Product) error
- type MockProductRepoMockRecorder
- func (mr *MockProductRepoMockRecorder) All(arg0 interface{}) *gomock.Call
- func (mr *MockProductRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProductRepoMockRecorder) Destroy(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProductRepoMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProductRepoMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProductRepo ¶
type MockProductRepo struct {
// contains filtered or unexported fields
}
MockProductRepo is a mock of ProductRepo interface.
func NewMockProductRepo ¶
func NewMockProductRepo(ctrl *gomock.Controller) *MockProductRepo
NewMockProductRepo creates a new mock instance.
func (*MockProductRepo) Destroy ¶
func (m *MockProductRepo) Destroy(arg0 context.Context, arg1 int) error
Destroy mocks base method.
func (*MockProductRepo) EXPECT ¶
func (m *MockProductRepo) EXPECT() *MockProductRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockProductRepoMockRecorder ¶
type MockProductRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockProductRepoMockRecorder is the mock recorder for MockProductRepo.
func (*MockProductRepoMockRecorder) All ¶
func (mr *MockProductRepoMockRecorder) All(arg0 interface{}) *gomock.Call
All indicates an expected call of All.
func (*MockProductRepoMockRecorder) Create ¶
func (mr *MockProductRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockProductRepoMockRecorder) Destroy ¶
func (mr *MockProductRepoMockRecorder) Destroy(arg0, arg1 interface{}) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockProductRepoMockRecorder) Find ¶
func (mr *MockProductRepoMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockProductRepoMockRecorder) Update ¶
func (mr *MockProductRepoMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
Click to show internal directories.
Click to hide internal directories.