mocks

package
v0.0.0-...-cd8b1d2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 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 IDB

type IDB struct {
	mock.Mock
}

IDB is an autogenerated mock type for the IDB type

func (*IDB) Close

func (_m *IDB) Close() error

Close provides a mock function with given fields:

func (*IDB) Ping

func (_m *IDB) Ping() error

Ping provides a mock function with given fields:

func (*IDB) PrepareContext

func (_m *IDB) PrepareContext(ctx context.Context, query string) (database.IStmt, error)

PrepareContext provides a mock function with given fields: ctx, query

type IResult

type IResult struct {
	mock.Mock
}

IResult is an autogenerated mock type for the IResult type

func (*IResult) LastInsertId

func (_m *IResult) LastInsertId() (int64, error)

LastInsertId provides a mock function with given fields:

func (*IResult) RowsAffected

func (_m *IResult) RowsAffected() (int64, error)

RowsAffected provides a mock function with given fields:

type IRow

type IRow struct {
	mock.Mock
}

IRow is an autogenerated mock type for the IRow type

func (*IRow) Scan

func (_m *IRow) Scan(dest ...interface{}) error

Scan provides a mock function with given fields: dest

type IRows

type IRows struct {
	mock.Mock
}

IRows is an autogenerated mock type for the IRows type

func (*IRows) Close

func (_m *IRows) Close() error

Close provides a mock function with given fields:

func (*IRows) Next

func (_m *IRows) Next() bool

Next provides a mock function with given fields:

func (*IRows) Scan

func (_m *IRows) Scan(dest ...interface{}) error

Scan provides a mock function with given fields: dest

type IStmt

type IStmt struct {
	mock.Mock
}

IStmt is an autogenerated mock type for the IStmt type

func (*IStmt) ExecContext

func (_m *IStmt) ExecContext(ctx context.Context, args ...interface{}) (database.IResult, error)

ExecContext provides a mock function with given fields: ctx, args

func (*IStmt) QueryContext

func (_m *IStmt) QueryContext(ctx context.Context, args ...interface{}) (database.IRows, error)

QueryContext provides a mock function with given fields: ctx, args

func (*IStmt) QueryRowContext

func (_m *IStmt) QueryRowContext(ctx context.Context, args ...interface{}) database.IRow

QueryRowContext provides a mock function with given fields: ctx, args

Jump to

Keyboard shortcuts

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