mocks

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBer

type DBer struct {
	mock.Mock
}

DBer is an autogenerated mock type for the DBer type

func NewDBer

func NewDBer(t interface {
	mock.TestingT
	Cleanup(func())
}) *DBer

NewDBer creates a new instance of DBer. 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 (*DBer) BeginTx

func (_m *DBer) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

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

func (*DBer) EXPECT

func (_m *DBer) EXPECT() *DBer_Expecter

func (*DBer) Exec

func (_m *DBer) Exec(query string, args ...interface{}) (sql.Result, error)

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

func (*DBer) Query

func (_m *DBer) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

func (*DBer) QueryContext added in v0.7.0

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

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

func (*DBer) QueryRow

func (_m *DBer) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: query, args

func (*DBer) QueryRowContext added in v0.7.0

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

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

type DBer_BeginTx_Call

type DBer_BeginTx_Call struct {
	*mock.Call
}

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

func (*DBer_BeginTx_Call) Return

func (_c *DBer_BeginTx_Call) Return(_a0 *sql.Tx, _a1 error) *DBer_BeginTx_Call

func (*DBer_BeginTx_Call) Run

func (_c *DBer_BeginTx_Call) Run(run func(ctx context.Context, opts *sql.TxOptions)) *DBer_BeginTx_Call

func (*DBer_BeginTx_Call) RunAndReturn

func (_c *DBer_BeginTx_Call) RunAndReturn(run func(context.Context, *sql.TxOptions) (*sql.Tx, error)) *DBer_BeginTx_Call

type DBer_Exec_Call

type DBer_Exec_Call struct {
	*mock.Call
}

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

func (*DBer_Exec_Call) Return

func (_c *DBer_Exec_Call) Return(_a0 sql.Result, _a1 error) *DBer_Exec_Call

func (*DBer_Exec_Call) Run

func (_c *DBer_Exec_Call) Run(run func(query string, args ...interface{})) *DBer_Exec_Call

func (*DBer_Exec_Call) RunAndReturn

func (_c *DBer_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *DBer_Exec_Call

type DBer_Expecter

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

func (*DBer_Expecter) BeginTx

func (_e *DBer_Expecter) BeginTx(ctx interface{}, opts interface{}) *DBer_BeginTx_Call

BeginTx is a helper method to define mock.On call

  • ctx context.Context
  • opts *sql.TxOptions

func (*DBer_Expecter) Exec

func (_e *DBer_Expecter) Exec(query interface{}, args ...interface{}) *DBer_Exec_Call

Exec is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*DBer_Expecter) Query

func (_e *DBer_Expecter) Query(query interface{}, args ...interface{}) *DBer_Query_Call

Query is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*DBer_Expecter) QueryContext added in v0.7.0

func (_e *DBer_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *DBer_QueryContext_Call

QueryContext is a helper method to define mock.On call

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

func (*DBer_Expecter) QueryRow

func (_e *DBer_Expecter) QueryRow(query interface{}, args ...interface{}) *DBer_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*DBer_Expecter) QueryRowContext added in v0.7.0

func (_e *DBer_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *DBer_QueryRowContext_Call

QueryRowContext is a helper method to define mock.On call

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

type DBer_QueryContext_Call added in v0.7.0

type DBer_QueryContext_Call struct {
	*mock.Call
}

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

func (*DBer_QueryContext_Call) Return added in v0.7.0

func (*DBer_QueryContext_Call) Run added in v0.7.0

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

func (*DBer_QueryContext_Call) RunAndReturn added in v0.7.0

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

type DBer_QueryRowContext_Call added in v0.7.0

type DBer_QueryRowContext_Call struct {
	*mock.Call
}

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

func (*DBer_QueryRowContext_Call) Return added in v0.7.0

func (*DBer_QueryRowContext_Call) Run added in v0.7.0

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

func (*DBer_QueryRowContext_Call) RunAndReturn added in v0.7.0

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

type DBer_QueryRow_Call

type DBer_QueryRow_Call struct {
	*mock.Call
}

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

func (*DBer_QueryRow_Call) Return

func (_c *DBer_QueryRow_Call) Return(_a0 *sql.Row) *DBer_QueryRow_Call

func (*DBer_QueryRow_Call) Run

func (_c *DBer_QueryRow_Call) Run(run func(query string, args ...interface{})) *DBer_QueryRow_Call

func (*DBer_QueryRow_Call) RunAndReturn

func (_c *DBer_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) *sql.Row) *DBer_QueryRow_Call

type DBer_Query_Call

type DBer_Query_Call struct {
	*mock.Call
}

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

func (*DBer_Query_Call) Return

func (_c *DBer_Query_Call) Return(_a0 *sql.Rows, _a1 error) *DBer_Query_Call

func (*DBer_Query_Call) Run

func (_c *DBer_Query_Call) Run(run func(query string, args ...interface{})) *DBer_Query_Call

func (*DBer_Query_Call) RunAndReturn

func (_c *DBer_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *DBer_Query_Call

type KeyValueStorager

type KeyValueStorager struct {
	mock.Mock
}

KeyValueStorager is an autogenerated mock type for the KeyValueStorager type

func NewKeyValueStorager

func NewKeyValueStorager(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyValueStorager

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

func (*KeyValueStorager) GetValue

func (_m *KeyValueStorager) GetValue(tx types.Querier, owner string, key string) (string, error)

GetValue provides a mock function with given fields: tx, owner, key

func (*KeyValueStorager) InsertValue

func (_m *KeyValueStorager) InsertValue(tx types.Querier, owner string, key string, value string) error

InsertValue provides a mock function with given fields: tx, owner, key, value

func (*KeyValueStorager) UpdateValue

func (_m *KeyValueStorager) UpdateValue(tx types.Querier, owner string, key string, value string) error

UpdateValue provides a mock function with given fields: tx, owner, key, value

type KeyValueStorager_Expecter

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

func (*KeyValueStorager_Expecter) GetValue

func (_e *KeyValueStorager_Expecter) GetValue(tx interface{}, owner interface{}, key interface{}) *KeyValueStorager_GetValue_Call

GetValue is a helper method to define mock.On call

  • tx types.Querier
  • owner string
  • key string

func (*KeyValueStorager_Expecter) InsertValue

func (_e *KeyValueStorager_Expecter) InsertValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *KeyValueStorager_InsertValue_Call

InsertValue is a helper method to define mock.On call

  • tx types.Querier
  • owner string
  • key string
  • value string

func (*KeyValueStorager_Expecter) UpdateValue

func (_e *KeyValueStorager_Expecter) UpdateValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *KeyValueStorager_UpdateValue_Call

UpdateValue is a helper method to define mock.On call

  • tx types.Querier
  • owner string
  • key string
  • value string

type KeyValueStorager_GetValue_Call

type KeyValueStorager_GetValue_Call struct {
	*mock.Call
}

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

func (*KeyValueStorager_GetValue_Call) Return

func (*KeyValueStorager_GetValue_Call) Run

func (*KeyValueStorager_GetValue_Call) RunAndReturn

type KeyValueStorager_InsertValue_Call

type KeyValueStorager_InsertValue_Call struct {
	*mock.Call
}

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

func (*KeyValueStorager_InsertValue_Call) Return

func (*KeyValueStorager_InsertValue_Call) Run

func (*KeyValueStorager_InsertValue_Call) RunAndReturn

type KeyValueStorager_UpdateValue_Call

type KeyValueStorager_UpdateValue_Call struct {
	*mock.Call
}

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

func (*KeyValueStorager_UpdateValue_Call) Return

func (*KeyValueStorager_UpdateValue_Call) Run

func (*KeyValueStorager_UpdateValue_Call) RunAndReturn

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

func (_m *Querier) Exec(query string, args ...interface{}) (sql.Result, error)

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

func (*Querier) Query

func (_m *Querier) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

func (*Querier) QueryContext added in v0.7.0

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

func (_m *Querier) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: query, args

func (*Querier) QueryRowContext added in v0.7.0

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

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

type Querier_Exec_Call

type Querier_Exec_Call struct {
	*mock.Call
}

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

func (*Querier_Exec_Call) Return

func (_c *Querier_Exec_Call) Return(_a0 sql.Result, _a1 error) *Querier_Exec_Call

func (*Querier_Exec_Call) Run

func (_c *Querier_Exec_Call) Run(run func(query string, args ...interface{})) *Querier_Exec_Call

func (*Querier_Exec_Call) RunAndReturn

func (_c *Querier_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Querier_Exec_Call

type Querier_Expecter

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

func (*Querier_Expecter) Exec

func (_e *Querier_Expecter) Exec(query interface{}, args ...interface{}) *Querier_Exec_Call

Exec is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Querier_Expecter) Query

func (_e *Querier_Expecter) Query(query interface{}, args ...interface{}) *Querier_Query_Call

Query is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Querier_Expecter) QueryContext added in v0.7.0

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

func (_e *Querier_Expecter) QueryRow(query interface{}, args ...interface{}) *Querier_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Querier_Expecter) QueryRowContext added in v0.7.0

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{}

type Querier_QueryContext_Call added in v0.7.0

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 added in v0.7.0

func (*Querier_QueryContext_Call) Run added in v0.7.0

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

func (*Querier_QueryContext_Call) RunAndReturn added in v0.7.0

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

type Querier_QueryRowContext_Call added in v0.7.0

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 added in v0.7.0

func (*Querier_QueryRowContext_Call) Run added in v0.7.0

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

func (*Querier_QueryRowContext_Call) RunAndReturn added in v0.7.0

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

type Querier_QueryRow_Call

type Querier_QueryRow_Call struct {
	*mock.Call
}

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

func (*Querier_QueryRow_Call) Return

func (*Querier_QueryRow_Call) Run

func (_c *Querier_QueryRow_Call) Run(run func(query string, args ...interface{})) *Querier_QueryRow_Call

func (*Querier_QueryRow_Call) RunAndReturn

func (_c *Querier_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) *sql.Row) *Querier_QueryRow_Call

type Querier_Query_Call

type Querier_Query_Call struct {
	*mock.Call
}

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

func (*Querier_Query_Call) Return

func (_c *Querier_Query_Call) Return(_a0 *sql.Rows, _a1 error) *Querier_Query_Call

func (*Querier_Query_Call) Run

func (_c *Querier_Query_Call) Run(run func(query string, args ...interface{})) *Querier_Query_Call

func (*Querier_Query_Call) RunAndReturn

func (_c *Querier_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *Querier_Query_Call

type SQLTxer

type SQLTxer struct {
	mock.Mock
}

SQLTxer is an autogenerated mock type for the SQLTxer type

func NewSQLTxer

func NewSQLTxer(t interface {
	mock.TestingT
	Cleanup(func())
}) *SQLTxer

NewSQLTxer creates a new instance of SQLTxer. 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 (*SQLTxer) Commit

func (_m *SQLTxer) Commit() error

Commit provides a mock function with no fields

func (*SQLTxer) EXPECT

func (_m *SQLTxer) EXPECT() *SQLTxer_Expecter

func (*SQLTxer) Exec

func (_m *SQLTxer) Exec(query string, args ...interface{}) (sql.Result, error)

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

func (*SQLTxer) Query

func (_m *SQLTxer) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

func (*SQLTxer) QueryContext added in v0.7.0

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

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

func (*SQLTxer) QueryRow

func (_m *SQLTxer) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: query, args

func (*SQLTxer) QueryRowContext added in v0.7.0

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

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

func (*SQLTxer) Rollback

func (_m *SQLTxer) Rollback() error

Rollback provides a mock function with no fields

type SQLTxer_Commit_Call

type SQLTxer_Commit_Call struct {
	*mock.Call
}

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

func (*SQLTxer_Commit_Call) Return

func (*SQLTxer_Commit_Call) Run

func (_c *SQLTxer_Commit_Call) Run(run func()) *SQLTxer_Commit_Call

func (*SQLTxer_Commit_Call) RunAndReturn

func (_c *SQLTxer_Commit_Call) RunAndReturn(run func() error) *SQLTxer_Commit_Call

type SQLTxer_Exec_Call

type SQLTxer_Exec_Call struct {
	*mock.Call
}

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

func (*SQLTxer_Exec_Call) Return

func (_c *SQLTxer_Exec_Call) Return(_a0 sql.Result, _a1 error) *SQLTxer_Exec_Call

func (*SQLTxer_Exec_Call) Run

func (_c *SQLTxer_Exec_Call) Run(run func(query string, args ...interface{})) *SQLTxer_Exec_Call

func (*SQLTxer_Exec_Call) RunAndReturn

func (_c *SQLTxer_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *SQLTxer_Exec_Call

type SQLTxer_Expecter

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

func (*SQLTxer_Expecter) Commit

func (_e *SQLTxer_Expecter) Commit() *SQLTxer_Commit_Call

Commit is a helper method to define mock.On call

func (*SQLTxer_Expecter) Exec

func (_e *SQLTxer_Expecter) Exec(query interface{}, args ...interface{}) *SQLTxer_Exec_Call

Exec is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*SQLTxer_Expecter) Query

func (_e *SQLTxer_Expecter) Query(query interface{}, args ...interface{}) *SQLTxer_Query_Call

Query is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*SQLTxer_Expecter) QueryContext added in v0.7.0

func (_e *SQLTxer_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *SQLTxer_QueryContext_Call

QueryContext is a helper method to define mock.On call

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

func (*SQLTxer_Expecter) QueryRow

func (_e *SQLTxer_Expecter) QueryRow(query interface{}, args ...interface{}) *SQLTxer_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*SQLTxer_Expecter) QueryRowContext added in v0.7.0

func (_e *SQLTxer_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *SQLTxer_QueryRowContext_Call

QueryRowContext is a helper method to define mock.On call

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

func (*SQLTxer_Expecter) Rollback

func (_e *SQLTxer_Expecter) Rollback() *SQLTxer_Rollback_Call

Rollback is a helper method to define mock.On call

type SQLTxer_QueryContext_Call added in v0.7.0

type SQLTxer_QueryContext_Call struct {
	*mock.Call
}

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

func (*SQLTxer_QueryContext_Call) Return added in v0.7.0

func (*SQLTxer_QueryContext_Call) Run added in v0.7.0

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

func (*SQLTxer_QueryContext_Call) RunAndReturn added in v0.7.0

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

type SQLTxer_QueryRowContext_Call added in v0.7.0

type SQLTxer_QueryRowContext_Call struct {
	*mock.Call
}

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

func (*SQLTxer_QueryRowContext_Call) Return added in v0.7.0

func (*SQLTxer_QueryRowContext_Call) Run added in v0.7.0

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

func (*SQLTxer_QueryRowContext_Call) RunAndReturn added in v0.7.0

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

type SQLTxer_QueryRow_Call

type SQLTxer_QueryRow_Call struct {
	*mock.Call
}

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

func (*SQLTxer_QueryRow_Call) Return

func (*SQLTxer_QueryRow_Call) Run

func (_c *SQLTxer_QueryRow_Call) Run(run func(query string, args ...interface{})) *SQLTxer_QueryRow_Call

func (*SQLTxer_QueryRow_Call) RunAndReturn

func (_c *SQLTxer_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) *sql.Row) *SQLTxer_QueryRow_Call

type SQLTxer_Query_Call

type SQLTxer_Query_Call struct {
	*mock.Call
}

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

func (*SQLTxer_Query_Call) Return

func (_c *SQLTxer_Query_Call) Return(_a0 *sql.Rows, _a1 error) *SQLTxer_Query_Call

func (*SQLTxer_Query_Call) Run

func (_c *SQLTxer_Query_Call) Run(run func(query string, args ...interface{})) *SQLTxer_Query_Call

func (*SQLTxer_Query_Call) RunAndReturn

func (_c *SQLTxer_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *SQLTxer_Query_Call

type SQLTxer_Rollback_Call

type SQLTxer_Rollback_Call struct {
	*mock.Call
}

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

func (*SQLTxer_Rollback_Call) Return

func (*SQLTxer_Rollback_Call) Run

func (_c *SQLTxer_Rollback_Call) Run(run func()) *SQLTxer_Rollback_Call

func (*SQLTxer_Rollback_Call) RunAndReturn

func (_c *SQLTxer_Rollback_Call) RunAndReturn(run func() error) *SQLTxer_Rollback_Call

type Txer

type Txer struct {
	mock.Mock
}

Txer is an autogenerated mock type for the Txer type

func NewTxer

func NewTxer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Txer

NewTxer creates a new instance of Txer. 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 (*Txer) AddCommitCallback

func (_m *Txer) AddCommitCallback(cb func())

AddCommitCallback provides a mock function with given fields: cb

func (*Txer) AddRollbackCallback

func (_m *Txer) AddRollbackCallback(cb func())

AddRollbackCallback provides a mock function with given fields: cb

func (*Txer) Commit

func (_m *Txer) Commit() error

Commit provides a mock function with no fields

func (*Txer) EXPECT

func (_m *Txer) EXPECT() *Txer_Expecter

func (*Txer) Exec

func (_m *Txer) Exec(query string, args ...interface{}) (sql.Result, error)

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

func (*Txer) Query

func (_m *Txer) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

func (*Txer) QueryContext added in v0.7.0

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

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

func (*Txer) QueryRow

func (_m *Txer) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: query, args

func (*Txer) QueryRowContext added in v0.7.0

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

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

func (*Txer) Rollback

func (_m *Txer) Rollback() error

Rollback provides a mock function with no fields

type Txer_AddCommitCallback_Call

type Txer_AddCommitCallback_Call struct {
	*mock.Call
}

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

func (*Txer_AddCommitCallback_Call) Return

func (*Txer_AddCommitCallback_Call) Run

func (_c *Txer_AddCommitCallback_Call) Run(run func(cb func())) *Txer_AddCommitCallback_Call

func (*Txer_AddCommitCallback_Call) RunAndReturn

func (_c *Txer_AddCommitCallback_Call) RunAndReturn(run func(func())) *Txer_AddCommitCallback_Call

type Txer_AddRollbackCallback_Call

type Txer_AddRollbackCallback_Call struct {
	*mock.Call
}

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

func (*Txer_AddRollbackCallback_Call) Return

func (*Txer_AddRollbackCallback_Call) Run

func (_c *Txer_AddRollbackCallback_Call) Run(run func(cb func())) *Txer_AddRollbackCallback_Call

func (*Txer_AddRollbackCallback_Call) RunAndReturn

func (_c *Txer_AddRollbackCallback_Call) RunAndReturn(run func(func())) *Txer_AddRollbackCallback_Call

type Txer_Commit_Call

type Txer_Commit_Call struct {
	*mock.Call
}

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

func (*Txer_Commit_Call) Return

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

func (*Txer_Commit_Call) Run

func (_c *Txer_Commit_Call) Run(run func()) *Txer_Commit_Call

func (*Txer_Commit_Call) RunAndReturn

func (_c *Txer_Commit_Call) RunAndReturn(run func() error) *Txer_Commit_Call

type Txer_Exec_Call

type Txer_Exec_Call struct {
	*mock.Call
}

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

func (*Txer_Exec_Call) Return

func (_c *Txer_Exec_Call) Return(_a0 sql.Result, _a1 error) *Txer_Exec_Call

func (*Txer_Exec_Call) Run

func (_c *Txer_Exec_Call) Run(run func(query string, args ...interface{})) *Txer_Exec_Call

func (*Txer_Exec_Call) RunAndReturn

func (_c *Txer_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Txer_Exec_Call

type Txer_Expecter

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

func (*Txer_Expecter) AddCommitCallback

func (_e *Txer_Expecter) AddCommitCallback(cb interface{}) *Txer_AddCommitCallback_Call

AddCommitCallback is a helper method to define mock.On call

  • cb func()

func (*Txer_Expecter) AddRollbackCallback

func (_e *Txer_Expecter) AddRollbackCallback(cb interface{}) *Txer_AddRollbackCallback_Call

AddRollbackCallback is a helper method to define mock.On call

  • cb func()

func (*Txer_Expecter) Commit

func (_e *Txer_Expecter) Commit() *Txer_Commit_Call

Commit is a helper method to define mock.On call

func (*Txer_Expecter) Exec

func (_e *Txer_Expecter) Exec(query interface{}, args ...interface{}) *Txer_Exec_Call

Exec is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Txer_Expecter) Query

func (_e *Txer_Expecter) Query(query interface{}, args ...interface{}) *Txer_Query_Call

Query is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Txer_Expecter) QueryContext added in v0.7.0

func (_e *Txer_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Txer_QueryContext_Call

QueryContext is a helper method to define mock.On call

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

func (*Txer_Expecter) QueryRow

func (_e *Txer_Expecter) QueryRow(query interface{}, args ...interface{}) *Txer_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Txer_Expecter) QueryRowContext added in v0.7.0

func (_e *Txer_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Txer_QueryRowContext_Call

QueryRowContext is a helper method to define mock.On call

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

func (*Txer_Expecter) Rollback

func (_e *Txer_Expecter) Rollback() *Txer_Rollback_Call

Rollback is a helper method to define mock.On call

type Txer_QueryContext_Call added in v0.7.0

type Txer_QueryContext_Call struct {
	*mock.Call
}

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

func (*Txer_QueryContext_Call) Return added in v0.7.0

func (*Txer_QueryContext_Call) Run added in v0.7.0

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

func (*Txer_QueryContext_Call) RunAndReturn added in v0.7.0

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

type Txer_QueryRowContext_Call added in v0.7.0

type Txer_QueryRowContext_Call struct {
	*mock.Call
}

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

func (*Txer_QueryRowContext_Call) Return added in v0.7.0

func (*Txer_QueryRowContext_Call) Run added in v0.7.0

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

func (*Txer_QueryRowContext_Call) RunAndReturn added in v0.7.0

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

type Txer_QueryRow_Call

type Txer_QueryRow_Call struct {
	*mock.Call
}

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

func (*Txer_QueryRow_Call) Return

func (_c *Txer_QueryRow_Call) Return(_a0 *sql.Row) *Txer_QueryRow_Call

func (*Txer_QueryRow_Call) Run

func (_c *Txer_QueryRow_Call) Run(run func(query string, args ...interface{})) *Txer_QueryRow_Call

func (*Txer_QueryRow_Call) RunAndReturn

func (_c *Txer_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) *sql.Row) *Txer_QueryRow_Call

type Txer_Query_Call

type Txer_Query_Call struct {
	*mock.Call
}

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

func (*Txer_Query_Call) Return

func (_c *Txer_Query_Call) Return(_a0 *sql.Rows, _a1 error) *Txer_Query_Call

func (*Txer_Query_Call) Run

func (_c *Txer_Query_Call) Run(run func(query string, args ...interface{})) *Txer_Query_Call

func (*Txer_Query_Call) RunAndReturn

func (_c *Txer_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *Txer_Query_Call

type Txer_Rollback_Call

type Txer_Rollback_Call struct {
	*mock.Call
}

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

func (*Txer_Rollback_Call) Return

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

func (*Txer_Rollback_Call) Run

func (_c *Txer_Rollback_Call) Run(run func()) *Txer_Rollback_Call

func (*Txer_Rollback_Call) RunAndReturn

func (_c *Txer_Rollback_Call) RunAndReturn(run func() error) *Txer_Rollback_Call

Jump to

Keyboard shortcuts

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