mocks

package
v0.0.0-...-30718cf Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAfterHook

type MockAfterHook struct {
	mock.Mock
}

MockAfterHook is an autogenerated mock type for the AfterHook type

func NewMockAfterHook

func NewMockAfterHook(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAfterHook

NewMockAfterHook creates a new instance of MockAfterHook. 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 (*MockAfterHook) After

func (_m *MockAfterHook) After(ctx context.Context, input *pgxhook.HookData) (context.Context, error)

After provides a mock function with given fields: ctx, input

func (*MockAfterHook) EXPECT

func (_m *MockAfterHook) EXPECT() *MockAfterHook_Expecter

type MockAfterHook_After_Call

type MockAfterHook_After_Call struct {
	*mock.Call
}

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

func (*MockAfterHook_After_Call) Return

func (*MockAfterHook_After_Call) Run

func (*MockAfterHook_After_Call) RunAndReturn

type MockAfterHook_Expecter

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

func (*MockAfterHook_Expecter) After

func (_e *MockAfterHook_Expecter) After(ctx interface{}, input interface{}) *MockAfterHook_After_Call

After is a helper method to define mock.On call

  • ctx context.Context
  • input *pgxhook.HookData

type MockBeforeHook

type MockBeforeHook struct {
	mock.Mock
}

MockBeforeHook is an autogenerated mock type for the BeforeHook type

func NewMockBeforeHook

func NewMockBeforeHook(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBeforeHook

NewMockBeforeHook creates a new instance of MockBeforeHook. 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 (*MockBeforeHook) Before

func (_m *MockBeforeHook) Before(ctx context.Context, input *pgxhook.HookData) (context.Context, error)

Before provides a mock function with given fields: ctx, input

func (*MockBeforeHook) EXPECT

type MockBeforeHook_Before_Call

type MockBeforeHook_Before_Call struct {
	*mock.Call
}

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

func (*MockBeforeHook_Before_Call) Return

func (*MockBeforeHook_Before_Call) Run

func (*MockBeforeHook_Before_Call) RunAndReturn

type MockBeforeHook_Expecter

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

func (*MockBeforeHook_Expecter) Before

func (_e *MockBeforeHook_Expecter) Before(ctx interface{}, input interface{}) *MockBeforeHook_Before_Call

Before is a helper method to define mock.On call

  • ctx context.Context
  • input *pgxhook.HookData

type MockConn

type MockConn struct {
	mock.Mock
}

MockConn is an autogenerated mock type for the Conn type

func NewMockConn

func NewMockConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConn

NewMockConn creates a new instance of MockConn. 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 (*MockConn) Begin

func (_m *MockConn) Begin(ctx context.Context) (pgx.Tx, error)

Begin provides a mock function with given fields: ctx

func (*MockConn) BeginTx

func (_m *MockConn) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)

BeginTx provides a mock function with given fields: ctx, txOptions

func (*MockConn) Close

func (_m *MockConn) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*MockConn) Conn

func (_m *MockConn) Conn() pgxhook.InputConn

Conn provides a mock function with given fields:

func (*MockConn) EXPECT

func (_m *MockConn) EXPECT() *MockConn_Expecter

func (*MockConn) Exec

func (_m *MockConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)

Exec provides a mock function with given fields: ctx, sql, args

func (*MockConn) Ping

func (_m *MockConn) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*MockConn) Query

func (_m *MockConn) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)

Query provides a mock function with given fields: ctx, sql, args

func (*MockConn) QueryRow

func (_m *MockConn) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row

QueryRow provides a mock function with given fields: ctx, sql, args

func (*MockConn) SendBatch

func (_m *MockConn) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults

SendBatch provides a mock function with given fields: ctx, b

type MockConnCloser

type MockConnCloser struct {
	mock.Mock
}

MockConnCloser is an autogenerated mock type for the ConnCloser type

func NewMockConnCloser

func NewMockConnCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConnCloser

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

func (_m *MockConnCloser) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*MockConnCloser) EXPECT

type MockConnCloser_Close_Call

type MockConnCloser_Close_Call struct {
	*mock.Call
}

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

func (*MockConnCloser_Close_Call) Return

func (*MockConnCloser_Close_Call) Run

func (*MockConnCloser_Close_Call) RunAndReturn

type MockConnCloser_Expecter

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

func (*MockConnCloser_Expecter) Close

func (_e *MockConnCloser_Expecter) Close(ctx interface{}) *MockConnCloser_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

type MockConn_BeginTx_Call

type MockConn_BeginTx_Call struct {
	*mock.Call
}

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

func (*MockConn_BeginTx_Call) Return

func (_c *MockConn_BeginTx_Call) Return(_a0 pgx.Tx, _a1 error) *MockConn_BeginTx_Call

func (*MockConn_BeginTx_Call) Run

func (_c *MockConn_BeginTx_Call) Run(run func(ctx context.Context, txOptions pgx.TxOptions)) *MockConn_BeginTx_Call

func (*MockConn_BeginTx_Call) RunAndReturn

type MockConn_Begin_Call

type MockConn_Begin_Call struct {
	*mock.Call
}

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

func (*MockConn_Begin_Call) Return

func (_c *MockConn_Begin_Call) Return(_a0 pgx.Tx, _a1 error) *MockConn_Begin_Call

func (*MockConn_Begin_Call) Run

func (_c *MockConn_Begin_Call) Run(run func(ctx context.Context)) *MockConn_Begin_Call

func (*MockConn_Begin_Call) RunAndReturn

func (_c *MockConn_Begin_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *MockConn_Begin_Call

type MockConn_Close_Call

type MockConn_Close_Call struct {
	*mock.Call
}

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

func (*MockConn_Close_Call) Return

func (*MockConn_Close_Call) Run

func (_c *MockConn_Close_Call) Run(run func(ctx context.Context)) *MockConn_Close_Call

func (*MockConn_Close_Call) RunAndReturn

func (_c *MockConn_Close_Call) RunAndReturn(run func(context.Context) error) *MockConn_Close_Call

type MockConn_Conn_Call

type MockConn_Conn_Call struct {
	*mock.Call
}

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

func (*MockConn_Conn_Call) Return

func (*MockConn_Conn_Call) Run

func (_c *MockConn_Conn_Call) Run(run func()) *MockConn_Conn_Call

func (*MockConn_Conn_Call) RunAndReturn

func (_c *MockConn_Conn_Call) RunAndReturn(run func() pgxhook.InputConn) *MockConn_Conn_Call

type MockConn_Exec_Call

type MockConn_Exec_Call struct {
	*mock.Call
}

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

func (*MockConn_Exec_Call) Return

func (*MockConn_Exec_Call) Run

func (_c *MockConn_Exec_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_Exec_Call

func (*MockConn_Exec_Call) RunAndReturn

func (_c *MockConn_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockConn_Exec_Call

type MockConn_Expecter

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

func (*MockConn_Expecter) Begin

func (_e *MockConn_Expecter) Begin(ctx interface{}) *MockConn_Begin_Call

Begin is a helper method to define mock.On call

  • ctx context.Context

func (*MockConn_Expecter) BeginTx

func (_e *MockConn_Expecter) BeginTx(ctx interface{}, txOptions interface{}) *MockConn_BeginTx_Call

BeginTx is a helper method to define mock.On call

  • ctx context.Context
  • txOptions pgx.TxOptions

func (*MockConn_Expecter) Close

func (_e *MockConn_Expecter) Close(ctx interface{}) *MockConn_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*MockConn_Expecter) Conn

Conn is a helper method to define mock.On call

func (*MockConn_Expecter) Exec

func (_e *MockConn_Expecter) Exec(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

func (*MockConn_Expecter) Ping

func (_e *MockConn_Expecter) Ping(ctx interface{}) *MockConn_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context

func (*MockConn_Expecter) Query

func (_e *MockConn_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

func (*MockConn_Expecter) QueryRow

func (_e *MockConn_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

func (*MockConn_Expecter) SendBatch

func (_e *MockConn_Expecter) SendBatch(ctx interface{}, b interface{}) *MockConn_SendBatch_Call

SendBatch is a helper method to define mock.On call

  • ctx context.Context
  • b *pgx.Batch

type MockConn_Ping_Call

type MockConn_Ping_Call struct {
	*mock.Call
}

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

func (*MockConn_Ping_Call) Return

func (_c *MockConn_Ping_Call) Return(_a0 error) *MockConn_Ping_Call

func (*MockConn_Ping_Call) Run

func (_c *MockConn_Ping_Call) Run(run func(ctx context.Context)) *MockConn_Ping_Call

func (*MockConn_Ping_Call) RunAndReturn

func (_c *MockConn_Ping_Call) RunAndReturn(run func(context.Context) error) *MockConn_Ping_Call

type MockConn_QueryRow_Call

type MockConn_QueryRow_Call struct {
	*mock.Call
}

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

func (*MockConn_QueryRow_Call) Return

func (*MockConn_QueryRow_Call) Run

func (_c *MockConn_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_QueryRow_Call

func (*MockConn_QueryRow_Call) RunAndReturn

func (_c *MockConn_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockConn_QueryRow_Call

type MockConn_Query_Call

type MockConn_Query_Call struct {
	*mock.Call
}

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

func (*MockConn_Query_Call) Return

func (_c *MockConn_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockConn_Query_Call

func (*MockConn_Query_Call) Run

func (_c *MockConn_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_Query_Call

func (*MockConn_Query_Call) RunAndReturn

func (_c *MockConn_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockConn_Query_Call

type MockConn_SendBatch_Call

type MockConn_SendBatch_Call struct {
	*mock.Call
}

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

func (*MockConn_SendBatch_Call) Return

func (*MockConn_SendBatch_Call) Run

func (*MockConn_SendBatch_Call) RunAndReturn

type MockFullHook

type MockFullHook struct {
	mock.Mock
}

MockFullHook is an autogenerated mock type for the FullHook type

func NewMockFullHook

func NewMockFullHook(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFullHook

NewMockFullHook creates a new instance of MockFullHook. 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 (*MockFullHook) After

func (_m *MockFullHook) After(ctx context.Context, input *pgxhook.HookData) (context.Context, error)

After provides a mock function with given fields: ctx, input

func (*MockFullHook) Before

func (_m *MockFullHook) Before(ctx context.Context, input *pgxhook.HookData) (context.Context, error)

Before provides a mock function with given fields: ctx, input

func (*MockFullHook) EXPECT

func (_m *MockFullHook) EXPECT() *MockFullHook_Expecter

type MockFullHook_After_Call

type MockFullHook_After_Call struct {
	*mock.Call
}

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

func (*MockFullHook_After_Call) Return

func (*MockFullHook_After_Call) Run

func (*MockFullHook_After_Call) RunAndReturn

type MockFullHook_Before_Call

type MockFullHook_Before_Call struct {
	*mock.Call
}

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

func (*MockFullHook_Before_Call) Return

func (*MockFullHook_Before_Call) Run

func (*MockFullHook_Before_Call) RunAndReturn

type MockFullHook_Expecter

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

func (*MockFullHook_Expecter) After

func (_e *MockFullHook_Expecter) After(ctx interface{}, input interface{}) *MockFullHook_After_Call

After is a helper method to define mock.On call

  • ctx context.Context
  • input *pgxhook.HookData

func (*MockFullHook_Expecter) Before

func (_e *MockFullHook_Expecter) Before(ctx interface{}, input interface{}) *MockFullHook_Before_Call

Before is a helper method to define mock.On call

  • ctx context.Context
  • input *pgxhook.HookData

type MockHookConnOption

type MockHookConnOption struct {
	mock.Mock
}

MockHookConnOption is an autogenerated mock type for the HookConnOption type

func NewMockHookConnOption

func NewMockHookConnOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHookConnOption

NewMockHookConnOption creates a new instance of MockHookConnOption. 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 (*MockHookConnOption) EXPECT

type MockHookConnOption_Expecter

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

type MockHookConnOption_apply_Call

type MockHookConnOption_apply_Call struct {
	*mock.Call
}

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

func (*MockHookConnOption_apply_Call) Return

func (*MockHookConnOption_apply_Call) Run

func (*MockHookConnOption_apply_Call) RunAndReturn

type MockInputConn

type MockInputConn struct {
	mock.Mock
}

MockInputConn is an autogenerated mock type for the InputConn type

func NewMockInputConn

func NewMockInputConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInputConn

NewMockInputConn creates a new instance of MockInputConn. 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 (*MockInputConn) Begin

func (_m *MockInputConn) Begin(ctx context.Context) (pgx.Tx, error)

Begin provides a mock function with given fields: ctx

func (*MockInputConn) BeginTx

func (_m *MockInputConn) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)

BeginTx provides a mock function with given fields: ctx, txOptions

func (*MockInputConn) EXPECT

func (_m *MockInputConn) EXPECT() *MockInputConn_Expecter

func (*MockInputConn) Exec

func (_m *MockInputConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)

Exec provides a mock function with given fields: ctx, sql, args

func (*MockInputConn) Ping

func (_m *MockInputConn) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*MockInputConn) Query

func (_m *MockInputConn) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)

Query provides a mock function with given fields: ctx, sql, args

func (*MockInputConn) QueryRow

func (_m *MockInputConn) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row

QueryRow provides a mock function with given fields: ctx, sql, args

func (*MockInputConn) SendBatch

func (_m *MockInputConn) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults

SendBatch provides a mock function with given fields: ctx, b

type MockInputConn_BeginTx_Call

type MockInputConn_BeginTx_Call struct {
	*mock.Call
}

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

func (*MockInputConn_BeginTx_Call) Return

func (*MockInputConn_BeginTx_Call) Run

func (*MockInputConn_BeginTx_Call) RunAndReturn

type MockInputConn_Begin_Call

type MockInputConn_Begin_Call struct {
	*mock.Call
}

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

func (*MockInputConn_Begin_Call) Return

func (*MockInputConn_Begin_Call) Run

func (*MockInputConn_Begin_Call) RunAndReturn

type MockInputConn_Exec_Call

type MockInputConn_Exec_Call struct {
	*mock.Call
}

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

func (*MockInputConn_Exec_Call) Return

func (*MockInputConn_Exec_Call) Run

func (_c *MockInputConn_Exec_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_Exec_Call

func (*MockInputConn_Exec_Call) RunAndReturn

func (_c *MockInputConn_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockInputConn_Exec_Call

type MockInputConn_Expecter

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

func (*MockInputConn_Expecter) Begin

func (_e *MockInputConn_Expecter) Begin(ctx interface{}) *MockInputConn_Begin_Call

Begin is a helper method to define mock.On call

  • ctx context.Context

func (*MockInputConn_Expecter) BeginTx

func (_e *MockInputConn_Expecter) BeginTx(ctx interface{}, txOptions interface{}) *MockInputConn_BeginTx_Call

BeginTx is a helper method to define mock.On call

  • ctx context.Context
  • txOptions pgx.TxOptions

func (*MockInputConn_Expecter) Exec

func (_e *MockInputConn_Expecter) Exec(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

func (*MockInputConn_Expecter) Ping

func (_e *MockInputConn_Expecter) Ping(ctx interface{}) *MockInputConn_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context

func (*MockInputConn_Expecter) Query

func (_e *MockInputConn_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

func (*MockInputConn_Expecter) QueryRow

func (_e *MockInputConn_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

func (*MockInputConn_Expecter) SendBatch

func (_e *MockInputConn_Expecter) SendBatch(ctx interface{}, b interface{}) *MockInputConn_SendBatch_Call

SendBatch is a helper method to define mock.On call

  • ctx context.Context
  • b *pgx.Batch

type MockInputConn_Ping_Call

type MockInputConn_Ping_Call struct {
	*mock.Call
}

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

func (*MockInputConn_Ping_Call) Return

func (*MockInputConn_Ping_Call) Run

func (*MockInputConn_Ping_Call) RunAndReturn

type MockInputConn_QueryRow_Call

type MockInputConn_QueryRow_Call struct {
	*mock.Call
}

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

func (*MockInputConn_QueryRow_Call) Return

func (*MockInputConn_QueryRow_Call) Run

func (_c *MockInputConn_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_QueryRow_Call

func (*MockInputConn_QueryRow_Call) RunAndReturn

func (_c *MockInputConn_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockInputConn_QueryRow_Call

type MockInputConn_Query_Call

type MockInputConn_Query_Call struct {
	*mock.Call
}

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

func (*MockInputConn_Query_Call) Return

func (*MockInputConn_Query_Call) Run

func (_c *MockInputConn_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_Query_Call

func (*MockInputConn_Query_Call) RunAndReturn

func (_c *MockInputConn_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockInputConn_Query_Call

type MockInputConn_SendBatch_Call

type MockInputConn_SendBatch_Call struct {
	*mock.Call
}

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

func (*MockInputConn_SendBatch_Call) Return

func (*MockInputConn_SendBatch_Call) Run

func (*MockInputConn_SendBatch_Call) RunAndReturn

type MockPoolCloser

type MockPoolCloser struct {
	mock.Mock
}

MockPoolCloser is an autogenerated mock type for the PoolCloser type

func NewMockPoolCloser

func NewMockPoolCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPoolCloser

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

func (_m *MockPoolCloser) Close()

Close provides a mock function with given fields:

func (*MockPoolCloser) EXPECT

type MockPoolCloser_Close_Call

type MockPoolCloser_Close_Call struct {
	*mock.Call
}

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

func (*MockPoolCloser_Close_Call) Return

func (*MockPoolCloser_Close_Call) Run

func (*MockPoolCloser_Close_Call) RunAndReturn

func (_c *MockPoolCloser_Close_Call) RunAndReturn(run func()) *MockPoolCloser_Close_Call

type MockPoolCloser_Expecter

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

func (*MockPoolCloser_Expecter) Close

Close is a helper method to define mock.On call

type MockfuncHookConnOption

type MockfuncHookConnOption struct {
	mock.Mock
}

MockfuncHookConnOption is an autogenerated mock type for the funcHookConnOption type

func NewMockfuncHookConnOption

func NewMockfuncHookConnOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockfuncHookConnOption

NewMockfuncHookConnOption creates a new instance of MockfuncHookConnOption. 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 (*MockfuncHookConnOption) EXPECT

func (*MockfuncHookConnOption) Execute

func (_m *MockfuncHookConnOption) Execute(s *pgxhook.HookConn)

Execute provides a mock function with given fields: s

type MockfuncHookConnOption_Execute_Call

type MockfuncHookConnOption_Execute_Call struct {
	*mock.Call
}

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

func (*MockfuncHookConnOption_Execute_Call) Return

func (*MockfuncHookConnOption_Execute_Call) Run

func (*MockfuncHookConnOption_Execute_Call) RunAndReturn

type MockfuncHookConnOption_Expecter

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

func (*MockfuncHookConnOption_Expecter) Execute

Execute is a helper method to define mock.On call

  • s *pgxhook.HookConn

Jump to

Keyboard shortcuts

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