mocks

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 4 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 (*DB) BeginTx

func (_m *DB) BeginTx(ctx context.Context) (orm.TX, error)

BeginTx provides a mock function with given fields: ctx

func (*DB) Exec

func (_m *DB) Exec(_a0 string, args ...interface{}) (sql.Result, error)

Exec provides a mock function with given fields: _a0, args

func (*DB) Query

func (_m *DB) Query(_a0 string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: _a0, args

func (*DB) SetError

func (_m *DB) SetError(err error)

SetError provides a mock function with given fields: err

type TX

type TX struct {
	mock.Mock
}

TX is an autogenerated mock type for the TX type

func (*TX) BeginTx

func (_m *TX) BeginTx(ctx context.Context) (orm.TX, error)

BeginTx provides a mock function with given fields: ctx

func (*TX) Close

func (_m *TX) Close() error

Close provides a mock function with given fields:

func (*TX) Exec

func (_m *TX) Exec(_a0 string, args ...interface{}) (sql.Result, error)

Exec provides a mock function with given fields: _a0, args

func (*TX) GetContext

func (_m *TX) GetContext() context.Context

GetContext provides a mock function with given fields:

func (*TX) Query

func (_m *TX) Query(_a0 string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: _a0, args

func (*TX) SetError

func (_m *TX) SetError(err error)

SetError provides a mock function with given fields: err

Jump to

Keyboard shortcuts

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