mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB

func NewDB(t mockConstructorTestingTNewDB) *DB

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

func (*DB) Begin

func (_m *DB) Begin() (orm.Transaction, error)

Begin provides a mock function with given fields:

func (*DB) Count

func (_m *DB) Count(count *int64) error

Count provides a mock function with given fields: count

func (*DB) Create

func (_m *DB) Create(value interface{}) error

Create provides a mock function with given fields: value

func (*DB) Delete

func (_m *DB) Delete(value interface{}, conds ...interface{}) error

Delete provides a mock function with given fields: value, conds

func (*DB) Distinct

func (_m *DB) Distinct(args ...interface{}) orm.Query

Distinct provides a mock function with given fields: args

func (*DB) Exec

func (_m *DB) Exec(sql string, values ...interface{}) error

Exec provides a mock function with given fields: sql, values

func (*DB) Find

func (_m *DB) Find(dest interface{}, conds ...interface{}) error

Find provides a mock function with given fields: dest, conds

func (*DB) First

func (_m *DB) First(dest interface{}) error

First provides a mock function with given fields: dest

func (*DB) FirstOrCreate

func (_m *DB) FirstOrCreate(dest interface{}, conds ...interface{}) error

FirstOrCreate provides a mock function with given fields: dest, conds

func (*DB) ForceDelete

func (_m *DB) ForceDelete(value interface{}, conds ...interface{}) error

ForceDelete provides a mock function with given fields: value, conds

func (*DB) Get

func (_m *DB) Get(dest interface{}) error

Get provides a mock function with given fields: dest

func (*DB) Group

func (_m *DB) Group(name string) orm.Query

Group provides a mock function with given fields: name

func (*DB) Having

func (_m *DB) Having(query interface{}, args ...interface{}) orm.Query

Having provides a mock function with given fields: query, args

func (*DB) Join

func (_m *DB) Join(query string, args ...interface{}) orm.Query

Join provides a mock function with given fields: query, args

func (*DB) Limit

func (_m *DB) Limit(limit int) orm.Query

Limit provides a mock function with given fields: limit

func (*DB) Model

func (_m *DB) Model(value interface{}) orm.Query

Model provides a mock function with given fields: value

func (*DB) Offset

func (_m *DB) Offset(offset int) orm.Query

Offset provides a mock function with given fields: offset

func (*DB) OrWhere

func (_m *DB) OrWhere(query interface{}, args ...interface{}) orm.Query

OrWhere provides a mock function with given fields: query, args

func (*DB) Order

func (_m *DB) Order(value interface{}) orm.Query

Order provides a mock function with given fields: value

func (*DB) Pluck

func (_m *DB) Pluck(column string, dest interface{}) error

Pluck provides a mock function with given fields: column, dest

func (*DB) Raw

func (_m *DB) Raw(sql string, values ...interface{}) orm.Query

Raw provides a mock function with given fields: sql, values

func (*DB) Save

func (_m *DB) Save(value interface{}) error

Save provides a mock function with given fields: value

func (*DB) Scan

func (_m *DB) Scan(dest interface{}) error

Scan provides a mock function with given fields: dest

func (*DB) Scopes

func (_m *DB) Scopes(funcs ...func(orm.Query) orm.Query) orm.Query

Scopes provides a mock function with given fields: funcs

func (*DB) Select

func (_m *DB) Select(query interface{}, args ...interface{}) orm.Query

Select provides a mock function with given fields: query, args

func (*DB) Table

func (_m *DB) Table(name string, args ...interface{}) orm.Query

Table provides a mock function with given fields: name, args

func (*DB) Update

func (_m *DB) Update(column string, value interface{}) error

Update provides a mock function with given fields: column, value

func (*DB) Updates

func (_m *DB) Updates(values interface{}) error

Updates provides a mock function with given fields: values

func (*DB) Where

func (_m *DB) Where(query interface{}, args ...interface{}) orm.Query

Where provides a mock function with given fields: query, args

func (*DB) WithTrashed

func (_m *DB) WithTrashed() orm.Query

WithTrashed provides a mock function with given fields:

type Orm

type Orm struct {
	mock.Mock
}

Orm is an autogenerated mock type for the Orm type

func NewOrm

func NewOrm(t mockConstructorTestingTNewOrm) *Orm

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

func (*Orm) Connection

func (_m *Orm) Connection(name string) orm.Orm

Connection provides a mock function with given fields: name

func (*Orm) Query

func (_m *Orm) Query() orm.DB

Query provides a mock function with given fields:

func (*Orm) Transaction

func (_m *Orm) Transaction(txFunc func(orm.Transaction) error) error

Transaction provides a mock function with given fields: txFunc

func (*Orm) WithContext

func (_m *Orm) WithContext(ctx context.Context) orm.Orm

WithContext provides a mock function with given fields: ctx

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) Commit

func (_m *Transaction) Commit() error

Commit provides a mock function with given fields:

func (*Transaction) Count

func (_m *Transaction) Count(count *int64) error

Count provides a mock function with given fields: count

func (*Transaction) Create

func (_m *Transaction) Create(value interface{}) error

Create provides a mock function with given fields: value

func (*Transaction) Delete

func (_m *Transaction) Delete(value interface{}, conds ...interface{}) error

Delete provides a mock function with given fields: value, conds

func (*Transaction) Distinct

func (_m *Transaction) Distinct(args ...interface{}) orm.Query

Distinct provides a mock function with given fields: args

func (*Transaction) Exec

func (_m *Transaction) Exec(sql string, values ...interface{}) error

Exec provides a mock function with given fields: sql, values

func (*Transaction) Find

func (_m *Transaction) Find(dest interface{}, conds ...interface{}) error

Find provides a mock function with given fields: dest, conds

func (*Transaction) First

func (_m *Transaction) First(dest interface{}) error

First provides a mock function with given fields: dest

func (*Transaction) FirstOrCreate

func (_m *Transaction) FirstOrCreate(dest interface{}, conds ...interface{}) error

FirstOrCreate provides a mock function with given fields: dest, conds

func (*Transaction) ForceDelete

func (_m *Transaction) ForceDelete(value interface{}, conds ...interface{}) error

ForceDelete provides a mock function with given fields: value, conds

func (*Transaction) Get

func (_m *Transaction) Get(dest interface{}) error

Get provides a mock function with given fields: dest

func (*Transaction) Group

func (_m *Transaction) Group(name string) orm.Query

Group provides a mock function with given fields: name

func (*Transaction) Having

func (_m *Transaction) Having(query interface{}, args ...interface{}) orm.Query

Having provides a mock function with given fields: query, args

func (*Transaction) Join

func (_m *Transaction) Join(query string, args ...interface{}) orm.Query

Join provides a mock function with given fields: query, args

func (*Transaction) Limit

func (_m *Transaction) Limit(limit int) orm.Query

Limit provides a mock function with given fields: limit

func (*Transaction) Model

func (_m *Transaction) Model(value interface{}) orm.Query

Model provides a mock function with given fields: value

func (*Transaction) Offset

func (_m *Transaction) Offset(offset int) orm.Query

Offset provides a mock function with given fields: offset

func (*Transaction) OrWhere

func (_m *Transaction) OrWhere(query interface{}, args ...interface{}) orm.Query

OrWhere provides a mock function with given fields: query, args

func (*Transaction) Order

func (_m *Transaction) Order(value interface{}) orm.Query

Order provides a mock function with given fields: value

func (*Transaction) Pluck

func (_m *Transaction) Pluck(column string, dest interface{}) error

Pluck provides a mock function with given fields: column, dest

func (*Transaction) Raw

func (_m *Transaction) Raw(sql string, values ...interface{}) orm.Query

Raw provides a mock function with given fields: sql, values

func (*Transaction) Rollback

func (_m *Transaction) Rollback() error

Rollback provides a mock function with given fields:

func (*Transaction) Save

func (_m *Transaction) Save(value interface{}) error

Save provides a mock function with given fields: value

func (*Transaction) Scan

func (_m *Transaction) Scan(dest interface{}) error

Scan provides a mock function with given fields: dest

func (*Transaction) Scopes

func (_m *Transaction) Scopes(funcs ...func(orm.Query) orm.Query) orm.Query

Scopes provides a mock function with given fields: funcs

func (*Transaction) Select

func (_m *Transaction) Select(query interface{}, args ...interface{}) orm.Query

Select provides a mock function with given fields: query, args

func (*Transaction) Table

func (_m *Transaction) Table(name string, args ...interface{}) orm.Query

Table provides a mock function with given fields: name, args

func (*Transaction) Update

func (_m *Transaction) Update(column string, value interface{}) error

Update provides a mock function with given fields: column, value

func (*Transaction) Updates

func (_m *Transaction) Updates(values interface{}) error

Updates provides a mock function with given fields: values

func (*Transaction) Where

func (_m *Transaction) Where(query interface{}, args ...interface{}) orm.Query

Where provides a mock function with given fields: query, args

func (*Transaction) WithTrashed

func (_m *Transaction) WithTrashed() orm.Query

WithTrashed provides a mock function with given fields:

Jump to

Keyboard shortcuts

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