mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 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 ErrorHandler

type ErrorHandler struct {
	mock.Mock
}

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

func (_m *ErrorHandler) HandleError(ctx context.Context, task *asynqpg.TaskInfo, err error)

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

type ErrorHandler_HandleError_Call struct {
	*mock.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 (*ErrorHandler_HandleError_Call) Run

func (*ErrorHandler_HandleError_Call) RunAndReturn

type Pool

type Pool struct {
	mock.Mock
}

Pool is an autogenerated mock type for the Pool type

func NewPool

func NewPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pool

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

func (_m *Pool) PingContext(ctx context.Context) error

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

func (_m *Pool) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRowContext provides a mock function with given fields: ctx, query, args

func (*Pool) SelectContext

func (_m *Pool) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext provides a mock function with given fields: ctx, dest, query, args

type Pool_ExecContext_Call

type Pool_ExecContext_Call struct {
	*mock.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 (*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

type Pool_GetContext_Call struct {
	*mock.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 (*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

type Pool_PingContext_Call struct {
	*mock.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 (*Pool_PingContext_Call) Run

func (*Pool_PingContext_Call) RunAndReturn

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

type Pool_QueryContext_Call

type Pool_QueryContext_Call struct {
	*mock.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 (*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

type Pool_QueryRowContext_Call struct {
	*mock.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 (*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

type Pool_SelectContext_Call struct {
	*mock.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 (*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

type Querier struct {
	mock.Mock
}

Querier is an autogenerated mock type for the Querier type

func NewQuerier

func NewQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Querier

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

func (_m *Querier) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRowContext provides a mock function with given fields: ctx, query, args

func (*Querier) SelectContext

func (_m *Querier) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext provides a mock function with given fields: ctx, dest, query, args

type Querier_ExecContext_Call

type Querier_ExecContext_Call struct {
	*mock.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 (*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

type Querier_GetContext_Call struct {
	*mock.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 (*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

type Querier_QueryContext_Call struct {
	*mock.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 (*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

type Querier_QueryRowContext_Call struct {
	*mock.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 (*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

type Querier_SelectContext_Call struct {
	*mock.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 (*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

type RetryPolicy struct {
	mock.Mock
}

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

func (*RetryPolicy) NextRetry

func (_m *RetryPolicy) NextRetry(attempt int) time.Duration

NextRetry provides a mock function with given fields: attempt

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

type RetryPolicy_NextRetry_Call struct {
	*mock.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 (*RetryPolicy_NextRetry_Call) Run

func (_c *RetryPolicy_NextRetry_Call) Run(run func(attempt int)) *RetryPolicy_NextRetry_Call

func (*RetryPolicy_NextRetry_Call) RunAndReturn

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tx

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) Commit

func (_m *Tx) Commit() error

Commit provides a mock function with no fields

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

func (_m *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRowContext provides a mock function with given fields: ctx, query, args

func (*Tx) Rollback

func (_m *Tx) Rollback() error

Rollback provides a mock function with no fields

func (*Tx) SelectContext

func (_m *Tx) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext provides a mock function with given fields: ctx, dest, query, args

type Tx_Commit_Call

type Tx_Commit_Call struct {
	*mock.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

type Tx_ExecContext_Call struct {
	*mock.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

type Tx_GetContext_Call struct {
	*mock.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

type Tx_QueryContext_Call struct {
	*mock.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

type Tx_QueryRowContext_Call struct {
	*mock.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 (*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

type Tx_Rollback_Call struct {
	*mock.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

type Tx_SelectContext_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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