mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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 NotificationConnection added in v0.2.0

type NotificationConnection struct {
	mock.Mock
}

NotificationConnection is an autogenerated mock type for the NotificationConnection type

func NewNotificationConnection added in v0.2.0

func NewNotificationConnection(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationConnection

NewNotificationConnection creates a new instance of NotificationConnection. 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 (*NotificationConnection) Close added in v0.2.0

Close provides a mock function with given fields: _a0

func (*NotificationConnection) EXPECT added in v0.2.0

func (*NotificationConnection) Listen added in v0.2.0

func (_m *NotificationConnection) Listen(_a0 context.Context, _a1 string) error

Listen provides a mock function with given fields: _a0, _a1

func (*NotificationConnection) Ping added in v0.2.0

Ping provides a mock function with given fields: _a0

func (*NotificationConnection) Unlisten added in v0.2.0

func (_m *NotificationConnection) Unlisten(_a0 context.Context, _a1 string) error

Unlisten provides a mock function with given fields: _a0, _a1

func (*NotificationConnection) WaitForNotification added in v0.2.0

func (_m *NotificationConnection) WaitForNotification(_a0 context.Context) (asynqpg.Notification, error)

WaitForNotification provides a mock function with given fields: _a0

type NotificationConnection_Close_Call added in v0.2.0

type NotificationConnection_Close_Call struct {
	*mock.Call
}

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

func (*NotificationConnection_Close_Call) Return added in v0.2.0

func (*NotificationConnection_Close_Call) Run added in v0.2.0

func (*NotificationConnection_Close_Call) RunAndReturn added in v0.2.0

type NotificationConnection_Expecter added in v0.2.0

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

func (*NotificationConnection_Expecter) Close added in v0.2.0

Close is a helper method to define mock.On call

  • _a0 context.Context

func (*NotificationConnection_Expecter) Listen added in v0.2.0

func (_e *NotificationConnection_Expecter) Listen(_a0 interface{}, _a1 interface{}) *NotificationConnection_Listen_Call

Listen is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*NotificationConnection_Expecter) Ping added in v0.2.0

Ping is a helper method to define mock.On call

  • _a0 context.Context

func (*NotificationConnection_Expecter) Unlisten added in v0.2.0

func (_e *NotificationConnection_Expecter) Unlisten(_a0 interface{}, _a1 interface{}) *NotificationConnection_Unlisten_Call

Unlisten is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*NotificationConnection_Expecter) WaitForNotification added in v0.2.0

func (_e *NotificationConnection_Expecter) WaitForNotification(_a0 interface{}) *NotificationConnection_WaitForNotification_Call

WaitForNotification is a helper method to define mock.On call

  • _a0 context.Context

type NotificationConnection_Listen_Call added in v0.2.0

type NotificationConnection_Listen_Call struct {
	*mock.Call
}

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

func (*NotificationConnection_Listen_Call) Return added in v0.2.0

func (*NotificationConnection_Listen_Call) Run added in v0.2.0

func (*NotificationConnection_Listen_Call) RunAndReturn added in v0.2.0

type NotificationConnection_Ping_Call added in v0.2.0

type NotificationConnection_Ping_Call struct {
	*mock.Call
}

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

func (*NotificationConnection_Ping_Call) Return added in v0.2.0

func (*NotificationConnection_Ping_Call) Run added in v0.2.0

func (*NotificationConnection_Ping_Call) RunAndReturn added in v0.2.0

type NotificationConnection_Unlisten_Call added in v0.2.0

type NotificationConnection_Unlisten_Call struct {
	*mock.Call
}

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

func (*NotificationConnection_Unlisten_Call) Return added in v0.2.0

func (*NotificationConnection_Unlisten_Call) Run added in v0.2.0

func (*NotificationConnection_Unlisten_Call) RunAndReturn added in v0.2.0

type NotificationConnection_WaitForNotification_Call added in v0.2.0

type NotificationConnection_WaitForNotification_Call struct {
	*mock.Call
}

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

func (*NotificationConnection_WaitForNotification_Call) Return added in v0.2.0

func (*NotificationConnection_WaitForNotification_Call) Run added in v0.2.0

func (*NotificationConnection_WaitForNotification_Call) RunAndReturn added in v0.2.0

type NotificationPool added in v0.2.0

type NotificationPool struct {
	mock.Mock
}

NotificationPool is an autogenerated mock type for the NotificationPool type

func NewNotificationPool added in v0.2.0

func NewNotificationPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationPool

NewNotificationPool creates a new instance of NotificationPool. 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 (*NotificationPool) EXPECT added in v0.2.0

func (*NotificationPool) ExecContext added in v0.2.0

func (_m *NotificationPool) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

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

func (*NotificationPool) GetContext added in v0.2.0

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

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

func (*NotificationPool) OpenNotificationConnection added in v0.2.0

func (_m *NotificationPool) OpenNotificationConnection(_a0 context.Context) (asynqpg.NotificationConnection, error)

OpenNotificationConnection provides a mock function with given fields: _a0

func (*NotificationPool) PingContext added in v0.2.0

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

PingContext provides a mock function with given fields: ctx

func (*NotificationPool) QueryContext added in v0.2.0

func (_m *NotificationPool) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

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

func (*NotificationPool) QueryRowContext added in v0.2.0

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

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

func (*NotificationPool) SelectContext added in v0.2.0

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

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

type NotificationPool_ExecContext_Call added in v0.2.0

type NotificationPool_ExecContext_Call struct {
	*mock.Call
}

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

func (*NotificationPool_ExecContext_Call) Return added in v0.2.0

func (*NotificationPool_ExecContext_Call) Run added in v0.2.0

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

func (*NotificationPool_ExecContext_Call) RunAndReturn added in v0.2.0

type NotificationPool_Expecter added in v0.2.0

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

func (*NotificationPool_Expecter) ExecContext added in v0.2.0

func (_e *NotificationPool_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *NotificationPool_ExecContext_Call

ExecContext is a helper method to define mock.On call

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

func (*NotificationPool_Expecter) GetContext added in v0.2.0

func (_e *NotificationPool_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *NotificationPool_GetContext_Call

GetContext is a helper method to define mock.On call

  • ctx context.Context
  • dest interface{}
  • query string
  • args ...interface{}

func (*NotificationPool_Expecter) OpenNotificationConnection added in v0.2.0

func (_e *NotificationPool_Expecter) OpenNotificationConnection(_a0 interface{}) *NotificationPool_OpenNotificationConnection_Call

OpenNotificationConnection is a helper method to define mock.On call

  • _a0 context.Context

func (*NotificationPool_Expecter) PingContext added in v0.2.0

func (_e *NotificationPool_Expecter) PingContext(ctx interface{}) *NotificationPool_PingContext_Call

PingContext is a helper method to define mock.On call

  • ctx context.Context

func (*NotificationPool_Expecter) QueryContext added in v0.2.0

func (_e *NotificationPool_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *NotificationPool_QueryContext_Call

QueryContext is a helper method to define mock.On call

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

func (*NotificationPool_Expecter) QueryRowContext added in v0.2.0

func (_e *NotificationPool_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *NotificationPool_QueryRowContext_Call

QueryRowContext is a helper method to define mock.On call

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

func (*NotificationPool_Expecter) SelectContext added in v0.2.0

func (_e *NotificationPool_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *NotificationPool_SelectContext_Call

SelectContext is a helper method to define mock.On call

  • ctx context.Context
  • dest interface{}
  • query string
  • args ...interface{}

type NotificationPool_GetContext_Call added in v0.2.0

type NotificationPool_GetContext_Call struct {
	*mock.Call
}

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

func (*NotificationPool_GetContext_Call) Return added in v0.2.0

func (*NotificationPool_GetContext_Call) Run added in v0.2.0

func (_c *NotificationPool_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *NotificationPool_GetContext_Call

func (*NotificationPool_GetContext_Call) RunAndReturn added in v0.2.0

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

type NotificationPool_OpenNotificationConnection_Call added in v0.2.0

type NotificationPool_OpenNotificationConnection_Call struct {
	*mock.Call
}

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

func (*NotificationPool_OpenNotificationConnection_Call) Return added in v0.2.0

func (*NotificationPool_OpenNotificationConnection_Call) Run added in v0.2.0

func (*NotificationPool_OpenNotificationConnection_Call) RunAndReturn added in v0.2.0

type NotificationPool_PingContext_Call added in v0.2.0

type NotificationPool_PingContext_Call struct {
	*mock.Call
}

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

func (*NotificationPool_PingContext_Call) Return added in v0.2.0

func (*NotificationPool_PingContext_Call) Run added in v0.2.0

func (*NotificationPool_PingContext_Call) RunAndReturn added in v0.2.0

type NotificationPool_QueryContext_Call added in v0.2.0

type NotificationPool_QueryContext_Call struct {
	*mock.Call
}

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

func (*NotificationPool_QueryContext_Call) Return added in v0.2.0

func (*NotificationPool_QueryContext_Call) Run added in v0.2.0

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

func (*NotificationPool_QueryContext_Call) RunAndReturn added in v0.2.0

type NotificationPool_QueryRowContext_Call added in v0.2.0

type NotificationPool_QueryRowContext_Call struct {
	*mock.Call
}

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

func (*NotificationPool_QueryRowContext_Call) Return added in v0.2.0

func (*NotificationPool_QueryRowContext_Call) Run added in v0.2.0

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

func (*NotificationPool_QueryRowContext_Call) RunAndReturn added in v0.2.0

type NotificationPool_SelectContext_Call added in v0.2.0

type NotificationPool_SelectContext_Call struct {
	*mock.Call
}

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

func (*NotificationPool_SelectContext_Call) Return added in v0.2.0

func (*NotificationPool_SelectContext_Call) Run added in v0.2.0

func (_c *NotificationPool_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *NotificationPool_SelectContext_Call

func (*NotificationPool_SelectContext_Call) RunAndReturn added in v0.2.0

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

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