mocks

package
v0.0.0-...-05e5575 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 3 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 (*Repository) Begin

func (_m *Repository) Begin() *gorm.DB

Begin provides a mock function with given fields:

func (*Repository) Commit

func (_m *Repository) Commit(db *gorm.DB) *gorm.DB

Commit provides a mock function with given fields: db

func (*Repository) Create

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

Create provides a mock function with given fields: ent

func (*Repository) CreateTransaction

func (_m *Repository) CreateTransaction(db *gorm.DB, ent interface{}) error

CreateTransaction provides a mock function with given fields: db, ent

func (*Repository) Find

func (_m *Repository) Find(filters map[string]interface{}, ent interface{}) error

Find provides a mock function with given fields: filters, ent

func (*Repository) First

func (_m *Repository) First(filters map[string]interface{}, ent interface{}) error

First provides a mock function with given fields: filters, ent

func (*Repository) IsErrorRecordNotFound

func (_m *Repository) IsErrorRecordNotFound(err error) bool

IsErrorRecordNotFound provides a mock function with given fields: err

func (*Repository) Last

func (_m *Repository) Last(filters map[string]interface{}, ent interface{}) error

Last provides a mock function with given fields: filters, ent

func (*Repository) List

func (_m *Repository) List(tableName string, offset int64, limit int64, filters interface{}, order interface{}, ent interface{}) (*utils.Pagination, error)

List provides a mock function with given fields: tableName, offset, limit, filters, order, ent

func (*Repository) Raw

func (_m *Repository) Raw(ent interface{}, sql string, value ...interface{}) error

Raw provides a mock function with given fields: ent, sql, value

func (*Repository) Rollback

func (_m *Repository) Rollback(db *gorm.DB) *gorm.DB

Rollback provides a mock function with given fields: db

func (*Repository) RollbackTo

func (_m *Repository) RollbackTo(db *gorm.DB, input string) *gorm.DB

RollbackTo provides a mock function with given fields: db, input

func (*Repository) SavePoint

func (_m *Repository) SavePoint(db *gorm.DB, input string) *gorm.DB

SavePoint provides a mock function with given fields: db, input

func (*Repository) Update

func (_m *Repository) Update(filters map[string]interface{}, ent interface{}) error

Update provides a mock function with given fields: filters, ent

func (*Repository) UpdateTransaction

func (_m *Repository) UpdateTransaction(db *gorm.DB, filters map[string]interface{}, ent interface{}) error

UpdateTransaction provides a mock function with given fields: db, filters, ent

func (*Repository) Upsert

func (_m *Repository) Upsert(tableName string, filters map[string]interface{}, ent interface{}) error

Upsert provides a mock function with given fields: tableName, filters, ent

Jump to

Keyboard shortcuts

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