mocks

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIngredientModelInterface) GetByRecipeID

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRecipeModelInterface) Get

Get mocks base method.

func (*MockRecipeModelInterface) GetAll

func (m *MockRecipeModelInterface) GetAll() ([]*models.Recipe, error)

GetAll mocks base method.

func (*MockRecipeModelInterface) GetWithTx

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.

func (*MockRecipeModelInterface) Update

func (m *MockRecipeModelInterface) Update(recipe *models.Recipe) error

Update 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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL