Documentation
¶
Index ¶
- type ErrorHandler
- type ErrorHandler_Expecter
- type ErrorHandler_HandleError_Call
- func (_c *ErrorHandler_HandleError_Call) Return() *ErrorHandler_HandleError_Call
- func (_c *ErrorHandler_HandleError_Call) Run(run func(ctx context.Context, task *asynqpg.TaskInfo, err error)) *ErrorHandler_HandleError_Call
- func (_c *ErrorHandler_HandleError_Call) RunAndReturn(run func(context.Context, *asynqpg.TaskInfo, error)) *ErrorHandler_HandleError_Call
- type Pool
- func (_m *Pool) EXPECT() *Pool_Expecter
- func (_m *Pool) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *Pool) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *Pool) PingContext(ctx context.Context) error
- func (_m *Pool) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Pool) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *Pool) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type Pool_ExecContext_Call
- func (_c *Pool_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Pool_ExecContext_Call
- func (_c *Pool_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Pool_ExecContext_Call
- func (_c *Pool_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Pool_ExecContext_Call
- type Pool_Expecter
- func (_e *Pool_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Pool_ExecContext_Call
- func (_e *Pool_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Pool_GetContext_Call
- func (_e *Pool_Expecter) PingContext(ctx interface{}) *Pool_PingContext_Call
- func (_e *Pool_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Pool_QueryContext_Call
- func (_e *Pool_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Pool_QueryRowContext_Call
- func (_e *Pool_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Pool_SelectContext_Call
- type Pool_GetContext_Call
- type Pool_PingContext_Call
- type Pool_QueryContext_Call
- func (_c *Pool_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Pool_QueryContext_Call
- func (_c *Pool_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Pool_QueryContext_Call
- func (_c *Pool_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Pool_QueryContext_Call
- type Pool_QueryRowContext_Call
- func (_c *Pool_QueryRowContext_Call) Return(_a0 *sql.Row) *Pool_QueryRowContext_Call
- func (_c *Pool_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Pool_QueryRowContext_Call
- func (_c *Pool_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Pool_QueryRowContext_Call
- type Pool_SelectContext_Call
- type Querier
- func (_m *Querier) EXPECT() *Querier_Expecter
- func (_m *Querier) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *Querier) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *Querier) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Querier) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *Querier) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type Querier_ExecContext_Call
- func (_c *Querier_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Querier_ExecContext_Call
- func (_c *Querier_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_ExecContext_Call
- func (_c *Querier_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Querier_ExecContext_Call
- type Querier_Expecter
- func (_e *Querier_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_ExecContext_Call
- func (_e *Querier_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Querier_GetContext_Call
- func (_e *Querier_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_QueryContext_Call
- func (_e *Querier_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_QueryRowContext_Call
- func (_e *Querier_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Querier_SelectContext_Call
- type Querier_GetContext_Call
- type Querier_QueryContext_Call
- func (_c *Querier_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Querier_QueryContext_Call
- func (_c *Querier_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_QueryContext_Call
- func (_c *Querier_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Querier_QueryContext_Call
- type Querier_QueryRowContext_Call
- func (_c *Querier_QueryRowContext_Call) Return(_a0 *sql.Row) *Querier_QueryRowContext_Call
- func (_c *Querier_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_QueryRowContext_Call
- func (_c *Querier_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Querier_QueryRowContext_Call
- type Querier_SelectContext_Call
- func (_c *Querier_SelectContext_Call) Return(_a0 error) *Querier_SelectContext_Call
- func (_c *Querier_SelectContext_Call) Run(...) *Querier_SelectContext_Call
- func (_c *Querier_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Querier_SelectContext_Call
- type RetryPolicy
- type RetryPolicy_Expecter
- type RetryPolicy_NextRetry_Call
- type Tx
- func (_m *Tx) Commit() error
- func (_m *Tx) EXPECT() *Tx_Expecter
- func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *Tx) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *Tx) Rollback() error
- func (_m *Tx) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type Tx_Commit_Call
- type Tx_ExecContext_Call
- func (_c *Tx_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Tx_ExecContext_Call
- func (_c *Tx_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_ExecContext_Call
- func (_c *Tx_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Tx_ExecContext_Call
- type Tx_Expecter
- func (_e *Tx_Expecter) Commit() *Tx_Commit_Call
- func (_e *Tx_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_ExecContext_Call
- func (_e *Tx_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Tx_GetContext_Call
- func (_e *Tx_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryContext_Call
- func (_e *Tx_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryRowContext_Call
- func (_e *Tx_Expecter) Rollback() *Tx_Rollback_Call
- func (_e *Tx_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Tx_SelectContext_Call
- type Tx_GetContext_Call
- type Tx_QueryContext_Call
- func (_c *Tx_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Tx_QueryContext_Call
- func (_c *Tx_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryContext_Call
- func (_c *Tx_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Tx_QueryContext_Call
- type Tx_QueryRowContext_Call
- func (_c *Tx_QueryRowContext_Call) Return(_a0 *sql.Row) *Tx_QueryRowContext_Call
- func (_c *Tx_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryRowContext_Call
- func (_c *Tx_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Tx_QueryRowContext_Call
- type Tx_Rollback_Call
- type Tx_SelectContext_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
ErrorHandler is an autogenerated mock type for the ErrorHandler type
func NewErrorHandler ¶
func NewErrorHandler(t interface {
mock.TestingT
Cleanup(func())
}) *ErrorHandler
NewErrorHandler creates a new instance of ErrorHandler. 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 (*ErrorHandler) EXPECT ¶
func (_m *ErrorHandler) EXPECT() *ErrorHandler_Expecter
func (*ErrorHandler) HandleError ¶
HandleError provides a mock function with given fields: ctx, task, err
type ErrorHandler_Expecter ¶
type ErrorHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*ErrorHandler_Expecter) HandleError ¶
func (_e *ErrorHandler_Expecter) HandleError(ctx interface{}, task interface{}, err interface{}) *ErrorHandler_HandleError_Call
HandleError is a helper method to define mock.On call
- ctx context.Context
- task *asynqpg.TaskInfo
- err error
type ErrorHandler_HandleError_Call ¶
ErrorHandler_HandleError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleError'
func (*ErrorHandler_HandleError_Call) Return ¶
func (_c *ErrorHandler_HandleError_Call) Return() *ErrorHandler_HandleError_Call
func (*ErrorHandler_HandleError_Call) Run ¶
func (_c *ErrorHandler_HandleError_Call) Run(run func(ctx context.Context, task *asynqpg.TaskInfo, err error)) *ErrorHandler_HandleError_Call
func (*ErrorHandler_HandleError_Call) RunAndReturn ¶
func (_c *ErrorHandler_HandleError_Call) RunAndReturn(run func(context.Context, *asynqpg.TaskInfo, error)) *ErrorHandler_HandleError_Call
type Pool ¶
Pool is an autogenerated mock type for the Pool type
func NewPool ¶
NewPool creates a new instance of Pool. 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 (*Pool) EXPECT ¶
func (_m *Pool) EXPECT() *Pool_Expecter
func (*Pool) ExecContext ¶
func (_m *Pool) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*Pool) GetContext ¶
func (_m *Pool) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext provides a mock function with given fields: ctx, dest, query, args
func (*Pool) PingContext ¶
PingContext provides a mock function with given fields: ctx
func (*Pool) QueryContext ¶
func (_m *Pool) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryContext provides a mock function with given fields: ctx, query, args
func (*Pool) QueryRowContext ¶
QueryRowContext provides a mock function with given fields: ctx, query, args
type Pool_ExecContext_Call ¶
Pool_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*Pool_ExecContext_Call) Return ¶
func (_c *Pool_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Pool_ExecContext_Call
func (*Pool_ExecContext_Call) Run ¶
func (_c *Pool_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Pool_ExecContext_Call
func (*Pool_ExecContext_Call) RunAndReturn ¶
func (_c *Pool_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Pool_ExecContext_Call
type Pool_Expecter ¶
type Pool_Expecter struct {
// contains filtered or unexported fields
}
func (*Pool_Expecter) ExecContext ¶
func (_e *Pool_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Pool_ExecContext_Call
ExecContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Pool_Expecter) GetContext ¶
func (_e *Pool_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Pool_GetContext_Call
GetContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*Pool_Expecter) PingContext ¶
func (_e *Pool_Expecter) PingContext(ctx interface{}) *Pool_PingContext_Call
PingContext is a helper method to define mock.On call
- ctx context.Context
func (*Pool_Expecter) QueryContext ¶
func (_e *Pool_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Pool_QueryContext_Call
QueryContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Pool_Expecter) QueryRowContext ¶
func (_e *Pool_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Pool_QueryRowContext_Call
QueryRowContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Pool_Expecter) SelectContext ¶
func (_e *Pool_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Pool_SelectContext_Call
SelectContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
type Pool_GetContext_Call ¶
Pool_GetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContext'
func (*Pool_GetContext_Call) Return ¶
func (_c *Pool_GetContext_Call) Return(_a0 error) *Pool_GetContext_Call
func (*Pool_GetContext_Call) Run ¶
func (_c *Pool_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Pool_GetContext_Call
func (*Pool_GetContext_Call) RunAndReturn ¶
func (_c *Pool_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Pool_GetContext_Call
type Pool_PingContext_Call ¶
Pool_PingContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PingContext'
func (*Pool_PingContext_Call) Return ¶
func (_c *Pool_PingContext_Call) Return(_a0 error) *Pool_PingContext_Call
func (*Pool_PingContext_Call) Run ¶
func (_c *Pool_PingContext_Call) Run(run func(ctx context.Context)) *Pool_PingContext_Call
func (*Pool_PingContext_Call) RunAndReturn ¶
func (_c *Pool_PingContext_Call) RunAndReturn(run func(context.Context) error) *Pool_PingContext_Call
type Pool_QueryContext_Call ¶
Pool_QueryContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryContext'
func (*Pool_QueryContext_Call) Return ¶
func (_c *Pool_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Pool_QueryContext_Call
func (*Pool_QueryContext_Call) Run ¶
func (_c *Pool_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Pool_QueryContext_Call
func (*Pool_QueryContext_Call) RunAndReturn ¶
func (_c *Pool_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Pool_QueryContext_Call
type Pool_QueryRowContext_Call ¶
Pool_QueryRowContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRowContext'
func (*Pool_QueryRowContext_Call) Return ¶
func (_c *Pool_QueryRowContext_Call) Return(_a0 *sql.Row) *Pool_QueryRowContext_Call
func (*Pool_QueryRowContext_Call) Run ¶
func (_c *Pool_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Pool_QueryRowContext_Call
func (*Pool_QueryRowContext_Call) RunAndReturn ¶
func (_c *Pool_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Pool_QueryRowContext_Call
type Pool_SelectContext_Call ¶
Pool_SelectContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectContext'
func (*Pool_SelectContext_Call) Return ¶
func (_c *Pool_SelectContext_Call) Return(_a0 error) *Pool_SelectContext_Call
func (*Pool_SelectContext_Call) Run ¶
func (_c *Pool_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Pool_SelectContext_Call
func (*Pool_SelectContext_Call) RunAndReturn ¶
func (_c *Pool_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Pool_SelectContext_Call
type Querier ¶
Querier is an autogenerated mock type for the Querier type
func NewQuerier ¶
NewQuerier creates a new instance of Querier. 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 (*Querier) EXPECT ¶
func (_m *Querier) EXPECT() *Querier_Expecter
func (*Querier) ExecContext ¶
func (_m *Querier) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*Querier) GetContext ¶
func (_m *Querier) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext provides a mock function with given fields: ctx, dest, query, args
func (*Querier) QueryContext ¶
func (_m *Querier) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryContext provides a mock function with given fields: ctx, query, args
func (*Querier) QueryRowContext ¶
QueryRowContext provides a mock function with given fields: ctx, query, args
type Querier_ExecContext_Call ¶
Querier_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*Querier_ExecContext_Call) Return ¶
func (_c *Querier_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Querier_ExecContext_Call
func (*Querier_ExecContext_Call) Run ¶
func (_c *Querier_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_ExecContext_Call
func (*Querier_ExecContext_Call) RunAndReturn ¶
func (_c *Querier_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Querier_ExecContext_Call
type Querier_Expecter ¶
type Querier_Expecter struct {
// contains filtered or unexported fields
}
func (*Querier_Expecter) ExecContext ¶
func (_e *Querier_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_ExecContext_Call
ExecContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Querier_Expecter) GetContext ¶
func (_e *Querier_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Querier_GetContext_Call
GetContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*Querier_Expecter) QueryContext ¶
func (_e *Querier_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_QueryContext_Call
QueryContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Querier_Expecter) QueryRowContext ¶
func (_e *Querier_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_QueryRowContext_Call
QueryRowContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Querier_Expecter) SelectContext ¶
func (_e *Querier_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Querier_SelectContext_Call
SelectContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
type Querier_GetContext_Call ¶
Querier_GetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContext'
func (*Querier_GetContext_Call) Return ¶
func (_c *Querier_GetContext_Call) Return(_a0 error) *Querier_GetContext_Call
func (*Querier_GetContext_Call) Run ¶
func (_c *Querier_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Querier_GetContext_Call
func (*Querier_GetContext_Call) RunAndReturn ¶
func (_c *Querier_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Querier_GetContext_Call
type Querier_QueryContext_Call ¶
Querier_QueryContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryContext'
func (*Querier_QueryContext_Call) Return ¶
func (_c *Querier_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Querier_QueryContext_Call
func (*Querier_QueryContext_Call) Run ¶
func (_c *Querier_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_QueryContext_Call
func (*Querier_QueryContext_Call) RunAndReturn ¶
func (_c *Querier_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Querier_QueryContext_Call
type Querier_QueryRowContext_Call ¶
Querier_QueryRowContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRowContext'
func (*Querier_QueryRowContext_Call) Return ¶
func (_c *Querier_QueryRowContext_Call) Return(_a0 *sql.Row) *Querier_QueryRowContext_Call
func (*Querier_QueryRowContext_Call) Run ¶
func (_c *Querier_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_QueryRowContext_Call
func (*Querier_QueryRowContext_Call) RunAndReturn ¶
func (_c *Querier_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Querier_QueryRowContext_Call
type Querier_SelectContext_Call ¶
Querier_SelectContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectContext'
func (*Querier_SelectContext_Call) Return ¶
func (_c *Querier_SelectContext_Call) Return(_a0 error) *Querier_SelectContext_Call
func (*Querier_SelectContext_Call) Run ¶
func (_c *Querier_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Querier_SelectContext_Call
func (*Querier_SelectContext_Call) RunAndReturn ¶
func (_c *Querier_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Querier_SelectContext_Call
type RetryPolicy ¶
RetryPolicy is an autogenerated mock type for the RetryPolicy type
func NewRetryPolicy ¶
func NewRetryPolicy(t interface {
mock.TestingT
Cleanup(func())
}) *RetryPolicy
NewRetryPolicy creates a new instance of RetryPolicy. 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 (*RetryPolicy) EXPECT ¶
func (_m *RetryPolicy) EXPECT() *RetryPolicy_Expecter
type RetryPolicy_Expecter ¶
type RetryPolicy_Expecter struct {
// contains filtered or unexported fields
}
func (*RetryPolicy_Expecter) NextRetry ¶
func (_e *RetryPolicy_Expecter) NextRetry(attempt interface{}) *RetryPolicy_NextRetry_Call
NextRetry is a helper method to define mock.On call
- attempt int
type RetryPolicy_NextRetry_Call ¶
RetryPolicy_NextRetry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextRetry'
func (*RetryPolicy_NextRetry_Call) Return ¶
func (_c *RetryPolicy_NextRetry_Call) Return(_a0 time.Duration) *RetryPolicy_NextRetry_Call
func (*RetryPolicy_NextRetry_Call) Run ¶
func (_c *RetryPolicy_NextRetry_Call) Run(run func(attempt int)) *RetryPolicy_NextRetry_Call
func (*RetryPolicy_NextRetry_Call) RunAndReturn ¶
func (_c *RetryPolicy_NextRetry_Call) RunAndReturn(run func(int) time.Duration) *RetryPolicy_NextRetry_Call
type Tx ¶
Tx is an autogenerated mock type for the Tx type
func NewTx ¶
NewTx creates a new instance of Tx. 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 (*Tx) EXPECT ¶
func (_m *Tx) EXPECT() *Tx_Expecter
func (*Tx) ExecContext ¶
func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*Tx) GetContext ¶
func (_m *Tx) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext provides a mock function with given fields: ctx, dest, query, args
func (*Tx) QueryContext ¶
func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryContext provides a mock function with given fields: ctx, query, args
func (*Tx) QueryRowContext ¶
QueryRowContext provides a mock function with given fields: ctx, query, args
type Tx_Commit_Call ¶
Tx_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Tx_Commit_Call) Return ¶
func (_c *Tx_Commit_Call) Return(_a0 error) *Tx_Commit_Call
func (*Tx_Commit_Call) Run ¶
func (_c *Tx_Commit_Call) Run(run func()) *Tx_Commit_Call
func (*Tx_Commit_Call) RunAndReturn ¶
func (_c *Tx_Commit_Call) RunAndReturn(run func() error) *Tx_Commit_Call
type Tx_ExecContext_Call ¶
Tx_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*Tx_ExecContext_Call) Return ¶
func (_c *Tx_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Tx_ExecContext_Call
func (*Tx_ExecContext_Call) Run ¶
func (_c *Tx_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_ExecContext_Call
func (*Tx_ExecContext_Call) RunAndReturn ¶
func (_c *Tx_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Tx_ExecContext_Call
type Tx_Expecter ¶
type Tx_Expecter struct {
// contains filtered or unexported fields
}
func (*Tx_Expecter) Commit ¶
func (_e *Tx_Expecter) Commit() *Tx_Commit_Call
Commit is a helper method to define mock.On call
func (*Tx_Expecter) ExecContext ¶
func (_e *Tx_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_ExecContext_Call
ExecContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Tx_Expecter) GetContext ¶
func (_e *Tx_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Tx_GetContext_Call
GetContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*Tx_Expecter) QueryContext ¶
func (_e *Tx_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryContext_Call
QueryContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Tx_Expecter) QueryRowContext ¶
func (_e *Tx_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryRowContext_Call
QueryRowContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Tx_Expecter) Rollback ¶
func (_e *Tx_Expecter) Rollback() *Tx_Rollback_Call
Rollback is a helper method to define mock.On call
func (*Tx_Expecter) SelectContext ¶
func (_e *Tx_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Tx_SelectContext_Call
SelectContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
type Tx_GetContext_Call ¶
Tx_GetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContext'
func (*Tx_GetContext_Call) Return ¶
func (_c *Tx_GetContext_Call) Return(_a0 error) *Tx_GetContext_Call
func (*Tx_GetContext_Call) Run ¶
func (_c *Tx_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Tx_GetContext_Call
func (*Tx_GetContext_Call) RunAndReturn ¶
func (_c *Tx_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Tx_GetContext_Call
type Tx_QueryContext_Call ¶
Tx_QueryContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryContext'
func (*Tx_QueryContext_Call) Return ¶
func (_c *Tx_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Tx_QueryContext_Call
func (*Tx_QueryContext_Call) Run ¶
func (_c *Tx_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryContext_Call
func (*Tx_QueryContext_Call) RunAndReturn ¶
func (_c *Tx_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Tx_QueryContext_Call
type Tx_QueryRowContext_Call ¶
Tx_QueryRowContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRowContext'
func (*Tx_QueryRowContext_Call) Return ¶
func (_c *Tx_QueryRowContext_Call) Return(_a0 *sql.Row) *Tx_QueryRowContext_Call
func (*Tx_QueryRowContext_Call) Run ¶
func (_c *Tx_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryRowContext_Call
func (*Tx_QueryRowContext_Call) RunAndReturn ¶
func (_c *Tx_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Tx_QueryRowContext_Call
type Tx_Rollback_Call ¶
Tx_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Tx_Rollback_Call) Return ¶
func (_c *Tx_Rollback_Call) Return(_a0 error) *Tx_Rollback_Call
func (*Tx_Rollback_Call) Run ¶
func (_c *Tx_Rollback_Call) Run(run func()) *Tx_Rollback_Call
func (*Tx_Rollback_Call) RunAndReturn ¶
func (_c *Tx_Rollback_Call) RunAndReturn(run func() error) *Tx_Rollback_Call
type Tx_SelectContext_Call ¶
Tx_SelectContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectContext'
func (*Tx_SelectContext_Call) Return ¶
func (_c *Tx_SelectContext_Call) Return(_a0 error) *Tx_SelectContext_Call
func (*Tx_SelectContext_Call) Run ¶
func (_c *Tx_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Tx_SelectContext_Call
func (*Tx_SelectContext_Call) RunAndReturn ¶
func (_c *Tx_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Tx_SelectContext_Call