Documentation
¶
Overview ¶
Package mockdb is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) AddIngredient(arg0 context.Context, arg1 db.AddIngredientParams) (db.Ingredient, error)
- func (m *MockStore) DeleteIngredient(arg0 context.Context, arg1 int64) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetIngreditent(arg0 context.Context, arg1 int64) (db.Ingredient, error)
- func (m *MockStore) ListIngredients(arg0 context.Context, arg1 db.ListIngredientsParams) ([]db.Ingredient, error)
- func (m *MockStore) UpdateIngredient(arg0 context.Context, arg1 db.UpdateIngredientParams) (db.Ingredient, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AddIngredient(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteIngredient(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetIngreditent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) ListIngredients(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateIngredient(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) AddIngredient ¶
func (m *MockStore) AddIngredient(arg0 context.Context, arg1 db.AddIngredientParams) (db.Ingredient, error)
AddIngredient mocks base method.
func (*MockStore) DeleteIngredient ¶
DeleteIngredient mocks base method.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) GetIngreditent ¶
GetIngreditent mocks base method.
func (*MockStore) ListIngredients ¶
func (m *MockStore) ListIngredients(arg0 context.Context, arg1 db.ListIngredientsParams) ([]db.Ingredient, error)
ListIngredients mocks base method.
func (*MockStore) UpdateIngredient ¶
func (m *MockStore) UpdateIngredient(arg0 context.Context, arg1 db.UpdateIngredientParams) (db.Ingredient, error)
UpdateIngredient mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) AddIngredient ¶
func (mr *MockStoreMockRecorder) AddIngredient(arg0, arg1 interface{}) *gomock.Call
AddIngredient indicates an expected call of AddIngredient.
func (*MockStoreMockRecorder) DeleteIngredient ¶
func (mr *MockStoreMockRecorder) DeleteIngredient(arg0, arg1 interface{}) *gomock.Call
DeleteIngredient indicates an expected call of DeleteIngredient.
func (*MockStoreMockRecorder) GetIngreditent ¶
func (mr *MockStoreMockRecorder) GetIngreditent(arg0, arg1 interface{}) *gomock.Call
GetIngreditent indicates an expected call of GetIngreditent.
func (*MockStoreMockRecorder) ListIngredients ¶
func (mr *MockStoreMockRecorder) ListIngredients(arg0, arg1 interface{}) *gomock.Call
ListIngredients indicates an expected call of ListIngredients.
func (*MockStoreMockRecorder) UpdateIngredient ¶
func (mr *MockStoreMockRecorder) UpdateIngredient(arg0, arg1 interface{}) *gomock.Call
UpdateIngredient indicates an expected call of UpdateIngredient.