mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 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 Query added in v1.0.1

type Query struct {
	mock.Mock
}

Query is an autogenerated mock type for the Query type

func NewQuery added in v1.0.1

func NewQuery(t interface {
	mock.TestingT
	Cleanup(func())
}) *Query

NewQuery creates a new instance of Query. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Query) BeginTx added in v1.0.1

func (_m *Query) BeginTx(ctx context.Context) (dbwrapper.Tx, error)

BeginTx provides a mock function with given fields: ctx

func (*Query) Exec added in v1.0.1

func (_m *Query) Exec(ctx context.Context, qb dbwrapper.Sqlizer) error

Exec provides a mock function with given fields: ctx, qb

func (*Query) Get added in v1.0.1

func (_m *Query) Get(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error

Get provides a mock function with given fields: ctx, qb, dest

func (*Query) GetList added in v1.0.1

func (_m *Query) GetList(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error

GetList provides a mock function with given fields: ctx, qb, dest

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tx

NewTx creates a new instance of Tx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Tx) BeginTx

func (_m *Tx) BeginTx(ctx context.Context) (dbwrapper.Tx, error)

BeginTx provides a mock function with given fields: ctx

func (*Tx) Commit

func (_m *Tx) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*Tx) Exec

func (_m *Tx) Exec(ctx context.Context, qb dbwrapper.Sqlizer) error

Exec provides a mock function with given fields: ctx, qb

func (*Tx) Get

func (_m *Tx) Get(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error

Get provides a mock function with given fields: ctx, qb, dest

func (*Tx) GetList added in v1.0.1

func (_m *Tx) GetList(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error

GetList provides a mock function with given fields: ctx, qb, dest

func (*Tx) Rollback

func (_m *Tx) Rollback(ctx context.Context) error

Rollback provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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