mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 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 Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t mockConstructorTestingTNewHandler) *Handler

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

func (*Handler) Key

func (_m *Handler) Key() string

Key provides a mock function with given fields:

func (*Handler) Process

func (_m *Handler) Process(_a0 context.Context, _a1 []byte) error

Process provides a mock function with given fields: _a0, _a1

type SQLConn

type SQLConn struct {
	mock.Mock
}

SQLConn is an autogenerated mock type for the SQLConn type

func NewSQLConn

func NewSQLConn(t mockConstructorTestingTNewSQLConn) *SQLConn

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

func (*SQLConn) ExecContext

func (_m *SQLConn) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)

ExecContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQLConn) PrepareContext

func (_m *SQLConn) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)

PrepareContext provides a mock function with given fields: _a0, _a1

func (*SQLConn) QueryContext

func (_m *SQLConn) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)

QueryContext provides a mock function with given fields: _a0, _a1, _a2

Jump to

Keyboard shortcuts

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