Documentation ¶
Overview ¶
Package mock_models is a generated GoMock package.
Package mock_models is a generated GoMock package.
Package mock_models is a generated GoMock package.
Package mock_models is a generated GoMock package.
Package mock_models is a generated GoMock package.
Index ¶
- type MockIngredientModelInterface
- func (m *MockIngredientModelInterface) EXPECT() *MockIngredientModelInterfaceMockRecorder
- func (m *MockIngredientModelInterface) GetByRecipeID(tx transactions.Transaction, recipeID int) ([]*models.FullIngredient, error)
- func (m *MockIngredientModelInterface) InsertIfNotExists(tx transactions.Transaction, name string) (int, error)
- type MockIngredientModelInterfaceMockRecorder
- type MockRecipeIngredientModelInterface
- func (m *MockRecipeIngredientModelInterface) Associate(tx transactions.Transaction, recipeID, ingredientID int, quantity float64, ...) error
- func (m *MockRecipeIngredientModelInterface) DissociateNotInList(tx transactions.Transaction, recipeID int, ...) error
- func (m *MockRecipeIngredientModelInterface) EXPECT() *MockRecipeIngredientModelInterfaceMockRecorder
- type MockRecipeIngredientModelInterfaceMockRecorder
- type MockRecipeModelInterface
- func (m *MockRecipeModelInterface) Delete(id int) error
- func (m *MockRecipeModelInterface) EXPECT() *MockRecipeModelInterfaceMockRecorder
- func (m *MockRecipeModelInterface) Get(id int) (*models.Recipe, error)
- func (m *MockRecipeModelInterface) GetAll() ([]*models.Recipe, error)
- func (m *MockRecipeModelInterface) GetWithTx(tx transactions.Transaction, id int) (*models.Recipe, error)
- func (m *MockRecipeModelInterface) Insert(name, description, instructions, preparationTime, cookingTime string, ...) (int, error)
- func (m *MockRecipeModelInterface) Ping() error
- func (m *MockRecipeModelInterface) Update(recipe *models.Recipe) error
- type MockRecipeModelInterfaceMockRecorder
- func (mr *MockRecipeModelInterfaceMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockRecipeModelInterfaceMockRecorder) Get(id interface{}) *gomock.Call
- func (mr *MockRecipeModelInterfaceMockRecorder) GetAll() *gomock.Call
- func (mr *MockRecipeModelInterfaceMockRecorder) GetWithTx(tx, id interface{}) *gomock.Call
- func (mr *MockRecipeModelInterfaceMockRecorder) Insert(...) *gomock.Call
- func (mr *MockRecipeModelInterfaceMockRecorder) Ping() *gomock.Call
- func (mr *MockRecipeModelInterfaceMockRecorder) Update(recipe interface{}) *gomock.Call
- type MockRecipeTagModelInterface
- func (m *MockRecipeTagModelInterface) Associate(tx transactions.Transaction, recipeID, tagID int) error
- func (m *MockRecipeTagModelInterface) DissociateNotInList(tx transactions.Transaction, recipeID int, recipeTags []*models.Tag) error
- func (m *MockRecipeTagModelInterface) EXPECT() *MockRecipeTagModelInterfaceMockRecorder
- type MockRecipeTagModelInterfaceMockRecorder
- type MockTagModelInterface
- type MockTagModelInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIngredientModelInterface ¶
type MockIngredientModelInterface struct {
// contains filtered or unexported fields
}
MockIngredientModelInterface is a mock of IngredientModelInterface interface.
func NewMockIngredientModelInterface ¶
func NewMockIngredientModelInterface(ctrl *gomock.Controller) *MockIngredientModelInterface
NewMockIngredientModelInterface creates a new mock instance.
func (*MockIngredientModelInterface) EXPECT ¶
func (m *MockIngredientModelInterface) EXPECT() *MockIngredientModelInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIngredientModelInterface) GetByRecipeID ¶
func (m *MockIngredientModelInterface) GetByRecipeID(tx transactions.Transaction, recipeID int) ([]*models.FullIngredient, error)
GetByRecipeID mocks base method.
func (*MockIngredientModelInterface) InsertIfNotExists ¶
func (m *MockIngredientModelInterface) InsertIfNotExists(tx transactions.Transaction, name string) (int, error)
InsertIfNotExists mocks base method.
type MockIngredientModelInterfaceMockRecorder ¶
type MockIngredientModelInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockIngredientModelInterfaceMockRecorder is the mock recorder for MockIngredientModelInterface.
func (*MockIngredientModelInterfaceMockRecorder) GetByRecipeID ¶
func (mr *MockIngredientModelInterfaceMockRecorder) GetByRecipeID(tx, recipeID interface{}) *gomock.Call
GetByRecipeID indicates an expected call of GetByRecipeID.
func (*MockIngredientModelInterfaceMockRecorder) InsertIfNotExists ¶
func (mr *MockIngredientModelInterfaceMockRecorder) InsertIfNotExists(tx, name interface{}) *gomock.Call
InsertIfNotExists indicates an expected call of InsertIfNotExists.
type MockRecipeIngredientModelInterface ¶
type MockRecipeIngredientModelInterface struct {
// contains filtered or unexported fields
}
MockRecipeIngredientModelInterface is a mock of RecipeIngredientModelInterface interface.
func NewMockRecipeIngredientModelInterface ¶
func NewMockRecipeIngredientModelInterface(ctrl *gomock.Controller) *MockRecipeIngredientModelInterface
NewMockRecipeIngredientModelInterface creates a new mock instance.
func (*MockRecipeIngredientModelInterface) Associate ¶
func (m *MockRecipeIngredientModelInterface) Associate(tx transactions.Transaction, recipeID, ingredientID int, quantity float64, unit string) error
Associate mocks base method.
func (*MockRecipeIngredientModelInterface) DissociateNotInList ¶
func (m *MockRecipeIngredientModelInterface) DissociateNotInList(tx transactions.Transaction, recipeID int, recipeIngredients []*models.FullIngredient) error
DissociateNotInList mocks base method.
func (*MockRecipeIngredientModelInterface) EXPECT ¶
func (m *MockRecipeIngredientModelInterface) EXPECT() *MockRecipeIngredientModelInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRecipeIngredientModelInterfaceMockRecorder ¶
type MockRecipeIngredientModelInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRecipeIngredientModelInterfaceMockRecorder is the mock recorder for MockRecipeIngredientModelInterface.
func (*MockRecipeIngredientModelInterfaceMockRecorder) Associate ¶
func (mr *MockRecipeIngredientModelInterfaceMockRecorder) Associate(tx, recipeID, ingredientID, quantity, unit interface{}) *gomock.Call
Associate indicates an expected call of Associate.
func (*MockRecipeIngredientModelInterfaceMockRecorder) DissociateNotInList ¶
func (mr *MockRecipeIngredientModelInterfaceMockRecorder) DissociateNotInList(tx, recipeID, recipeIngredients interface{}) *gomock.Call
DissociateNotInList indicates an expected call of DissociateNotInList.
type MockRecipeModelInterface ¶
type MockRecipeModelInterface struct { IngredientModel *MockIngredientModelInterface RecipeIngredientModel *MockRecipeIngredientModelInterface TagModel *MockTagModelInterface RecipeTagModel *MockRecipeTagModelInterface // contains filtered or unexported fields }
MockRecipeModelInterface is a mock of RecipeModelInterface interface.
func NewMockRecipeModelInterface ¶
func NewMockRecipeModelInterface(ctrl *gomock.Controller) *MockRecipeModelInterface
NewMockRecipeModelInterface creates a new mock instance.
func (*MockRecipeModelInterface) Delete ¶
func (m *MockRecipeModelInterface) Delete(id int) error
Delete mocks base method.
func (*MockRecipeModelInterface) EXPECT ¶
func (m *MockRecipeModelInterface) EXPECT() *MockRecipeModelInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRecipeModelInterface) Get ¶
func (m *MockRecipeModelInterface) Get(id int) (*models.Recipe, error)
Get mocks base method.
func (*MockRecipeModelInterface) GetAll ¶
func (m *MockRecipeModelInterface) GetAll() ([]*models.Recipe, error)
GetAll mocks base method.
func (*MockRecipeModelInterface) GetWithTx ¶
func (m *MockRecipeModelInterface) GetWithTx(tx transactions.Transaction, id int) (*models.Recipe, error)
GetWithTx mocks base method.
func (*MockRecipeModelInterface) Insert ¶
func (m *MockRecipeModelInterface) Insert(name, description, instructions, preparationTime, cookingTime string, portions int, ingredients []*models.FullIngredient, tags []*models.Tag) (int, error)
Insert mocks base method.
func (*MockRecipeModelInterface) Ping ¶
func (m *MockRecipeModelInterface) Ping() error
Ping mocks base method.
type MockRecipeModelInterfaceMockRecorder ¶
type MockRecipeModelInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRecipeModelInterfaceMockRecorder is the mock recorder for MockRecipeModelInterface.
func (*MockRecipeModelInterfaceMockRecorder) Delete ¶
func (mr *MockRecipeModelInterfaceMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRecipeModelInterfaceMockRecorder) Get ¶
func (mr *MockRecipeModelInterfaceMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRecipeModelInterfaceMockRecorder) GetAll ¶
func (mr *MockRecipeModelInterfaceMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockRecipeModelInterfaceMockRecorder) GetWithTx ¶
func (mr *MockRecipeModelInterfaceMockRecorder) GetWithTx(tx, id interface{}) *gomock.Call
GetWithTx indicates an expected call of GetWithTx.
func (*MockRecipeModelInterfaceMockRecorder) Insert ¶
func (mr *MockRecipeModelInterfaceMockRecorder) Insert(name, description, instructions, preparationTime, cookingTime, portions, ingredients, tags interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockRecipeModelInterfaceMockRecorder) Ping ¶
func (mr *MockRecipeModelInterfaceMockRecorder) Ping() *gomock.Call
Ping indicates an expected call of Ping.
func (*MockRecipeModelInterfaceMockRecorder) Update ¶
func (mr *MockRecipeModelInterfaceMockRecorder) Update(recipe interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockRecipeTagModelInterface ¶
type MockRecipeTagModelInterface struct {
// contains filtered or unexported fields
}
MockRecipeTagModelInterface is a mock of RecipeTagModelInterface interface.
func NewMockRecipeTagModelInterface ¶
func NewMockRecipeTagModelInterface(ctrl *gomock.Controller) *MockRecipeTagModelInterface
NewMockRecipeTagModelInterface creates a new mock instance.
func (*MockRecipeTagModelInterface) Associate ¶
func (m *MockRecipeTagModelInterface) Associate(tx transactions.Transaction, recipeID, tagID int) error
Associate mocks base method.
func (*MockRecipeTagModelInterface) DissociateNotInList ¶
func (m *MockRecipeTagModelInterface) DissociateNotInList(tx transactions.Transaction, recipeID int, recipeTags []*models.Tag) error
DissociateNotInList mocks base method.
func (*MockRecipeTagModelInterface) EXPECT ¶
func (m *MockRecipeTagModelInterface) EXPECT() *MockRecipeTagModelInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRecipeTagModelInterfaceMockRecorder ¶
type MockRecipeTagModelInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRecipeTagModelInterfaceMockRecorder is the mock recorder for MockRecipeTagModelInterface.
func (*MockRecipeTagModelInterfaceMockRecorder) Associate ¶
func (mr *MockRecipeTagModelInterfaceMockRecorder) Associate(tx, recipeID, tagID interface{}) *gomock.Call
Associate indicates an expected call of Associate.
func (*MockRecipeTagModelInterfaceMockRecorder) DissociateNotInList ¶
func (mr *MockRecipeTagModelInterfaceMockRecorder) DissociateNotInList(tx, recipeID, recipeTags interface{}) *gomock.Call
DissociateNotInList indicates an expected call of DissociateNotInList.
type MockTagModelInterface ¶
type MockTagModelInterface struct {
// contains filtered or unexported fields
}
MockTagModelInterface is a mock of TagModelInterface interface.
func NewMockTagModelInterface ¶
func NewMockTagModelInterface(ctrl *gomock.Controller) *MockTagModelInterface
NewMockTagModelInterface creates a new mock instance.
func (*MockTagModelInterface) EXPECT ¶
func (m *MockTagModelInterface) EXPECT() *MockTagModelInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTagModelInterface) GetByRecipeID ¶
func (m *MockTagModelInterface) GetByRecipeID(tx transactions.Transaction, recipeID int) ([]*models.Tag, error)
GetByRecipeID mocks base method.
func (*MockTagModelInterface) InsertIfNotExists ¶
func (m *MockTagModelInterface) InsertIfNotExists(tx transactions.Transaction, name string) (int, error)
InsertIfNotExists mocks base method.
type MockTagModelInterfaceMockRecorder ¶
type MockTagModelInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockTagModelInterfaceMockRecorder is the mock recorder for MockTagModelInterface.
func (*MockTagModelInterfaceMockRecorder) GetByRecipeID ¶
func (mr *MockTagModelInterfaceMockRecorder) GetByRecipeID(tx, recipeID interface{}) *gomock.Call
GetByRecipeID indicates an expected call of GetByRecipeID.
func (*MockTagModelInterfaceMockRecorder) InsertIfNotExists ¶
func (mr *MockTagModelInterfaceMockRecorder) InsertIfNotExists(tx, name interface{}) *gomock.Call
InsertIfNotExists indicates an expected call of InsertIfNotExists.