mocks

package
v3.2.11 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t mockConstructorTestingTNewRepository) *Repository

NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Repository) All

func (_m *Repository) All(v interface{}) error

All provides a mock function with given fields: v

func (*Repository) Bind

func (_m *Repository) Bind(v interface{}, id string) error

Bind provides a mock function with given fields: v, id

func (*Repository) Create

func (_m *Repository) Create(v interface{}) error

Create provides a mock function with given fields: v

func (*Repository) Delete

func (_m *Repository) Delete(v interface{}, id string) error

Delete provides a mock function with given fields: v, id

func (*Repository) FindBy

func (_m *Repository) FindBy(v interface{}, filters ...repositories.Filter) error

FindBy provides a mock function with given fields: v, filters

func (*Repository) Model

func (_m *Repository) Model(model string)

Model provides a mock function with given fields: model

func (*Repository) Transaction

func (_m *Repository) Transaction(_a0 repositories.Transaction) error

Transaction provides a mock function with given fields: _a0

func (*Repository) Update

func (_m *Repository) Update(v interface{}) error

Update provides a mock function with given fields: v

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Transaction) Execute

func (_m *Transaction) Execute(_a0 repositories.Repository) error

Execute provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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