dbconnector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDBConnector

type MockDBConnector struct {
	mock.Mock
}

MockDBConnector is an autogenerated mock type for the DBConnector type

func NewMockDBConnector

func NewMockDBConnector(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDBConnector

NewMockDBConnector creates a new instance of MockDBConnector. 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 (*MockDBConnector) Connect

Connect provides a mock function with given fields: ctx, addr, credentials

func (*MockDBConnector) EXPECT

type MockDBConnector_Connect_Call

type MockDBConnector_Connect_Call struct {
	*mock.Call
}

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

func (*MockDBConnector_Connect_Call) Return

func (*MockDBConnector_Connect_Call) Run

type MockDBConnector_Expecter

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

func (*MockDBConnector_Expecter) Connect

func (_e *MockDBConnector_Expecter) Connect(ctx interface{}, addr interface{}, credentials interface{}) *MockDBConnector_Connect_Call

Connect is a helper method to define mock.On call

  • ctx context.Context
  • addr dbconnector.Addr
  • credentials models.Credentials

type MockExecutorCloser

type MockExecutorCloser struct {
	mock.Mock
}

MockExecutorCloser is an autogenerated mock type for the ExecutorCloser type

func NewMockExecutorCloser

func NewMockExecutorCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExecutorCloser

NewMockExecutorCloser creates a new instance of MockExecutorCloser. 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 (*MockExecutorCloser) Close

func (_m *MockExecutorCloser) Close() error

Close provides a mock function with given fields:

func (*MockExecutorCloser) EXPECT

func (*MockExecutorCloser) Exec

func (_m *MockExecutorCloser) Exec(ctx context.Context, query models.Query) (models.RowSet, int, error)

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

type MockExecutorCloser_Close_Call

type MockExecutorCloser_Close_Call struct {
	*mock.Call
}

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

func (*MockExecutorCloser_Close_Call) Return

func (*MockExecutorCloser_Close_Call) Run

func (*MockExecutorCloser_Close_Call) RunAndReturn

type MockExecutorCloser_Exec_Call

type MockExecutorCloser_Exec_Call struct {
	*mock.Call
}

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

func (*MockExecutorCloser_Exec_Call) Return

func (_c *MockExecutorCloser_Exec_Call) Return(rows models.RowSet, affectedRows int, err error) *MockExecutorCloser_Exec_Call

func (*MockExecutorCloser_Exec_Call) Run

func (*MockExecutorCloser_Exec_Call) RunAndReturn

type MockExecutorCloser_Expecter

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

func (*MockExecutorCloser_Expecter) Close

Close is a helper method to define mock.On call

func (*MockExecutorCloser_Expecter) Exec

func (_e *MockExecutorCloser_Expecter) Exec(ctx interface{}, query interface{}) *MockExecutorCloser_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • query models.Query

Jump to

Keyboard shortcuts

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