dbcache

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockdbSQLInterface

type MockdbSQLInterface struct {
	mock.Mock
}

MockdbSQLInterface is an autogenerated mock type for the dbSQLInterface type

func NewMockdbSQLInterface

func NewMockdbSQLInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockdbSQLInterface

NewMockdbSQLInterface creates a new instance of MockdbSQLInterface. 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 (*MockdbSQLInterface) BeginTx

func (_mock *MockdbSQLInterface) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

BeginTx provides a mock function for the type MockdbSQLInterface

func (*MockdbSQLInterface) Close

func (_mock *MockdbSQLInterface) Close() error

Close provides a mock function for the type MockdbSQLInterface

func (*MockdbSQLInterface) EXPECT

func (*MockdbSQLInterface) Exec

func (_mock *MockdbSQLInterface) Exec(ctx context.Context, query string, args ...any) (sql.Result, error)

Exec provides a mock function for the type MockdbSQLInterface

func (*MockdbSQLInterface) Query

func (_mock *MockdbSQLInterface) Query(ctx context.Context, query string, args ...any) (*sql.Rows, error)

Query provides a mock function for the type MockdbSQLInterface

func (*MockdbSQLInterface) QueryRow

func (_mock *MockdbSQLInterface) QueryRow(ctx context.Context, query string, args ...any) *sql.Row

QueryRow provides a mock function for the type MockdbSQLInterface

type MockdbSQLInterface_BeginTx_Call

type MockdbSQLInterface_BeginTx_Call struct {
	*mock.Call
}

MockdbSQLInterface_BeginTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTx'

func (*MockdbSQLInterface_BeginTx_Call) Return

func (*MockdbSQLInterface_BeginTx_Call) Run

func (*MockdbSQLInterface_BeginTx_Call) RunAndReturn

type MockdbSQLInterface_Close_Call

type MockdbSQLInterface_Close_Call struct {
	*mock.Call
}

MockdbSQLInterface_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*MockdbSQLInterface_Close_Call) Return

func (*MockdbSQLInterface_Close_Call) Run

func (*MockdbSQLInterface_Close_Call) RunAndReturn

type MockdbSQLInterface_Exec_Call

type MockdbSQLInterface_Exec_Call struct {
	*mock.Call
}

MockdbSQLInterface_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*MockdbSQLInterface_Exec_Call) Return

func (*MockdbSQLInterface_Exec_Call) Run

func (_c *MockdbSQLInterface_Exec_Call) Run(run func(ctx context.Context, query string, args ...any)) *MockdbSQLInterface_Exec_Call

func (*MockdbSQLInterface_Exec_Call) RunAndReturn

func (_c *MockdbSQLInterface_Exec_Call) RunAndReturn(run func(ctx context.Context, query string, args ...any) (sql.Result, error)) *MockdbSQLInterface_Exec_Call

type MockdbSQLInterface_Expecter

type MockdbSQLInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockdbSQLInterface_Expecter) BeginTx

func (_e *MockdbSQLInterface_Expecter) BeginTx(ctx interface{}, opts interface{}) *MockdbSQLInterface_BeginTx_Call

BeginTx is a helper method to define mock.On call

  • ctx context.Context
  • opts *sql.TxOptions

func (*MockdbSQLInterface_Expecter) Close

Close is a helper method to define mock.On call

func (*MockdbSQLInterface_Expecter) Exec

func (_e *MockdbSQLInterface_Expecter) Exec(ctx interface{}, query interface{}, args ...interface{}) *MockdbSQLInterface_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...any

func (*MockdbSQLInterface_Expecter) Query

func (_e *MockdbSQLInterface_Expecter) Query(ctx interface{}, query interface{}, args ...interface{}) *MockdbSQLInterface_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...any

func (*MockdbSQLInterface_Expecter) QueryRow

func (_e *MockdbSQLInterface_Expecter) QueryRow(ctx interface{}, query interface{}, args ...interface{}) *MockdbSQLInterface_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...any

type MockdbSQLInterface_QueryRow_Call

type MockdbSQLInterface_QueryRow_Call struct {
	*mock.Call
}

MockdbSQLInterface_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'

func (*MockdbSQLInterface_QueryRow_Call) Return

func (*MockdbSQLInterface_QueryRow_Call) Run

func (*MockdbSQLInterface_QueryRow_Call) RunAndReturn

func (_c *MockdbSQLInterface_QueryRow_Call) RunAndReturn(run func(ctx context.Context, query string, args ...any) *sql.Row) *MockdbSQLInterface_QueryRow_Call

type MockdbSQLInterface_Query_Call

type MockdbSQLInterface_Query_Call struct {
	*mock.Call
}

MockdbSQLInterface_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*MockdbSQLInterface_Query_Call) Return

func (*MockdbSQLInterface_Query_Call) Run

func (_c *MockdbSQLInterface_Query_Call) Run(run func(ctx context.Context, query string, args ...any)) *MockdbSQLInterface_Query_Call

func (*MockdbSQLInterface_Query_Call) RunAndReturn

func (_c *MockdbSQLInterface_Query_Call) RunAndReturn(run func(ctx context.Context, query string, args ...any) (*sql.Rows, error)) *MockdbSQLInterface_Query_Call

Jump to

Keyboard shortcuts

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