Documentation
¶
Index ¶
- type DBer
- func (_m *DBer) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (_m *DBer) EXPECT() *DBer_Expecter
- func (_m *DBer) Exec(query string, args ...interface{}) (sql.Result, error)
- func (_m *DBer) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *DBer) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *DBer) QueryRow(query string, args ...interface{}) *sql.Row
- func (_m *DBer) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- type DBer_BeginTx_Call
- func (_c *DBer_BeginTx_Call) Return(_a0 *sql.Tx, _a1 error) *DBer_BeginTx_Call
- func (_c *DBer_BeginTx_Call) Run(run func(ctx context.Context, opts *sql.TxOptions)) *DBer_BeginTx_Call
- func (_c *DBer_BeginTx_Call) RunAndReturn(run func(context.Context, *sql.TxOptions) (*sql.Tx, error)) *DBer_BeginTx_Call
- type DBer_Exec_Call
- type DBer_Expecter
- func (_e *DBer_Expecter) BeginTx(ctx interface{}, opts interface{}) *DBer_BeginTx_Call
- func (_e *DBer_Expecter) Exec(query interface{}, args ...interface{}) *DBer_Exec_Call
- func (_e *DBer_Expecter) Query(query interface{}, args ...interface{}) *DBer_Query_Call
- func (_e *DBer_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *DBer_QueryContext_Call
- func (_e *DBer_Expecter) QueryRow(query interface{}, args ...interface{}) *DBer_QueryRow_Call
- func (_e *DBer_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *DBer_QueryRowContext_Call
- type DBer_QueryContext_Call
- func (_c *DBer_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *DBer_QueryContext_Call
- func (_c *DBer_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *DBer_QueryContext_Call
- func (_c *DBer_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *DBer_QueryContext_Call
- type DBer_QueryRowContext_Call
- func (_c *DBer_QueryRowContext_Call) Return(_a0 *sql.Row) *DBer_QueryRowContext_Call
- func (_c *DBer_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *DBer_QueryRowContext_Call
- func (_c *DBer_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *DBer_QueryRowContext_Call
- type DBer_QueryRow_Call
- type DBer_Query_Call
- type KeyValueStorager
- func (_m *KeyValueStorager) EXPECT() *KeyValueStorager_Expecter
- func (_m *KeyValueStorager) GetValue(tx types.Querier, owner string, key string) (string, error)
- func (_m *KeyValueStorager) InsertValue(tx types.Querier, owner string, key string, value string) error
- func (_m *KeyValueStorager) UpdateValue(tx types.Querier, owner string, key string, value string) error
- type KeyValueStorager_Expecter
- func (_e *KeyValueStorager_Expecter) GetValue(tx interface{}, owner interface{}, key interface{}) *KeyValueStorager_GetValue_Call
- func (_e *KeyValueStorager_Expecter) InsertValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *KeyValueStorager_InsertValue_Call
- func (_e *KeyValueStorager_Expecter) UpdateValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *KeyValueStorager_UpdateValue_Call
- type KeyValueStorager_GetValue_Call
- func (_c *KeyValueStorager_GetValue_Call) Return(_a0 string, _a1 error) *KeyValueStorager_GetValue_Call
- func (_c *KeyValueStorager_GetValue_Call) Run(run func(tx types.Querier, owner string, key string)) *KeyValueStorager_GetValue_Call
- func (_c *KeyValueStorager_GetValue_Call) RunAndReturn(run func(types.Querier, string, string) (string, error)) *KeyValueStorager_GetValue_Call
- type KeyValueStorager_InsertValue_Call
- func (_c *KeyValueStorager_InsertValue_Call) Return(_a0 error) *KeyValueStorager_InsertValue_Call
- func (_c *KeyValueStorager_InsertValue_Call) Run(run func(tx types.Querier, owner string, key string, value string)) *KeyValueStorager_InsertValue_Call
- func (_c *KeyValueStorager_InsertValue_Call) RunAndReturn(run func(types.Querier, string, string, string) error) *KeyValueStorager_InsertValue_Call
- type KeyValueStorager_UpdateValue_Call
- func (_c *KeyValueStorager_UpdateValue_Call) Return(_a0 error) *KeyValueStorager_UpdateValue_Call
- func (_c *KeyValueStorager_UpdateValue_Call) Run(run func(tx types.Querier, owner string, key string, value string)) *KeyValueStorager_UpdateValue_Call
- func (_c *KeyValueStorager_UpdateValue_Call) RunAndReturn(run func(types.Querier, string, string, string) error) *KeyValueStorager_UpdateValue_Call
- type Querier
- func (_m *Querier) EXPECT() *Querier_Expecter
- func (_m *Querier) Exec(query string, args ...interface{}) (sql.Result, error)
- func (_m *Querier) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Querier) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Querier) QueryRow(query string, args ...interface{}) *sql.Row
- func (_m *Querier) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- type Querier_Exec_Call
- type Querier_Expecter
- func (_e *Querier_Expecter) Exec(query interface{}, args ...interface{}) *Querier_Exec_Call
- func (_e *Querier_Expecter) Query(query interface{}, args ...interface{}) *Querier_Query_Call
- func (_e *Querier_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_QueryContext_Call
- func (_e *Querier_Expecter) QueryRow(query interface{}, args ...interface{}) *Querier_QueryRow_Call
- func (_e *Querier_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Querier_QueryRowContext_Call
- type Querier_QueryContext_Call
- func (_c *Querier_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Querier_QueryContext_Call
- func (_c *Querier_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_QueryContext_Call
- func (_c *Querier_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Querier_QueryContext_Call
- type Querier_QueryRowContext_Call
- func (_c *Querier_QueryRowContext_Call) Return(_a0 *sql.Row) *Querier_QueryRowContext_Call
- func (_c *Querier_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Querier_QueryRowContext_Call
- func (_c *Querier_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Querier_QueryRowContext_Call
- type Querier_QueryRow_Call
- type Querier_Query_Call
- type SQLTxer
- func (_m *SQLTxer) Commit() error
- func (_m *SQLTxer) EXPECT() *SQLTxer_Expecter
- func (_m *SQLTxer) Exec(query string, args ...interface{}) (sql.Result, error)
- func (_m *SQLTxer) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *SQLTxer) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *SQLTxer) QueryRow(query string, args ...interface{}) *sql.Row
- func (_m *SQLTxer) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *SQLTxer) Rollback() error
- type SQLTxer_Commit_Call
- type SQLTxer_Exec_Call
- type SQLTxer_Expecter
- func (_e *SQLTxer_Expecter) Commit() *SQLTxer_Commit_Call
- func (_e *SQLTxer_Expecter) Exec(query interface{}, args ...interface{}) *SQLTxer_Exec_Call
- func (_e *SQLTxer_Expecter) Query(query interface{}, args ...interface{}) *SQLTxer_Query_Call
- func (_e *SQLTxer_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *SQLTxer_QueryContext_Call
- func (_e *SQLTxer_Expecter) QueryRow(query interface{}, args ...interface{}) *SQLTxer_QueryRow_Call
- func (_e *SQLTxer_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *SQLTxer_QueryRowContext_Call
- func (_e *SQLTxer_Expecter) Rollback() *SQLTxer_Rollback_Call
- type SQLTxer_QueryContext_Call
- func (_c *SQLTxer_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *SQLTxer_QueryContext_Call
- func (_c *SQLTxer_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *SQLTxer_QueryContext_Call
- func (_c *SQLTxer_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *SQLTxer_QueryContext_Call
- type SQLTxer_QueryRowContext_Call
- func (_c *SQLTxer_QueryRowContext_Call) Return(_a0 *sql.Row) *SQLTxer_QueryRowContext_Call
- func (_c *SQLTxer_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *SQLTxer_QueryRowContext_Call
- func (_c *SQLTxer_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *SQLTxer_QueryRowContext_Call
- type SQLTxer_QueryRow_Call
- type SQLTxer_Query_Call
- type SQLTxer_Rollback_Call
- type Txer
- func (_m *Txer) AddCommitCallback(cb func())
- func (_m *Txer) AddRollbackCallback(cb func())
- func (_m *Txer) Commit() error
- func (_m *Txer) EXPECT() *Txer_Expecter
- func (_m *Txer) Exec(query string, args ...interface{}) (sql.Result, error)
- func (_m *Txer) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Txer) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Txer) QueryRow(query string, args ...interface{}) *sql.Row
- func (_m *Txer) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *Txer) Rollback() error
- type Txer_AddCommitCallback_Call
- type Txer_AddRollbackCallback_Call
- type Txer_Commit_Call
- type Txer_Exec_Call
- type Txer_Expecter
- func (_e *Txer_Expecter) AddCommitCallback(cb interface{}) *Txer_AddCommitCallback_Call
- func (_e *Txer_Expecter) AddRollbackCallback(cb interface{}) *Txer_AddRollbackCallback_Call
- func (_e *Txer_Expecter) Commit() *Txer_Commit_Call
- func (_e *Txer_Expecter) Exec(query interface{}, args ...interface{}) *Txer_Exec_Call
- func (_e *Txer_Expecter) Query(query interface{}, args ...interface{}) *Txer_Query_Call
- func (_e *Txer_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Txer_QueryContext_Call
- func (_e *Txer_Expecter) QueryRow(query interface{}, args ...interface{}) *Txer_QueryRow_Call
- func (_e *Txer_Expecter) QueryRowContext(ctx interface{}, query interface{}, args ...interface{}) *Txer_QueryRowContext_Call
- func (_e *Txer_Expecter) Rollback() *Txer_Rollback_Call
- type Txer_QueryContext_Call
- func (_c *Txer_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Txer_QueryContext_Call
- func (_c *Txer_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Txer_QueryContext_Call
- func (_c *Txer_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Txer_QueryContext_Call
- type Txer_QueryRowContext_Call
- func (_c *Txer_QueryRowContext_Call) Return(_a0 *sql.Row) *Txer_QueryRowContext_Call
- func (_c *Txer_QueryRowContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Txer_QueryRowContext_Call
- func (_c *Txer_QueryRowContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Txer_QueryRowContext_Call
- type Txer_QueryRow_Call
- type Txer_Query_Call
- type Txer_Rollback_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBer ¶
DBer is an autogenerated mock type for the DBer type
func NewDBer ¶
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) EXPECT ¶
func (_m *DBer) EXPECT() *DBer_Expecter
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
type DBer_BeginTx_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 ¶
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
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 (_c *DBer_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *DBer_QueryContext_Call
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
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 (_c *DBer_QueryRowContext_Call) Return(_a0 *sql.Row) *DBer_QueryRowContext_Call
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 ¶
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 ¶
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 ¶
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 (_m *KeyValueStorager) EXPECT() *KeyValueStorager_Expecter
func (*KeyValueStorager) GetValue ¶
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 ¶
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 (_c *KeyValueStorager_GetValue_Call) Return(_a0 string, _a1 error) *KeyValueStorager_GetValue_Call
func (*KeyValueStorager_GetValue_Call) Run ¶
func (_c *KeyValueStorager_GetValue_Call) Run(run func(tx types.Querier, owner string, key string)) *KeyValueStorager_GetValue_Call
func (*KeyValueStorager_GetValue_Call) RunAndReturn ¶
func (_c *KeyValueStorager_GetValue_Call) RunAndReturn(run func(types.Querier, string, string) (string, error)) *KeyValueStorager_GetValue_Call
type KeyValueStorager_InsertValue_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 (_c *KeyValueStorager_InsertValue_Call) Return(_a0 error) *KeyValueStorager_InsertValue_Call
func (*KeyValueStorager_InsertValue_Call) Run ¶
func (_c *KeyValueStorager_InsertValue_Call) Run(run func(tx types.Querier, owner string, key string, value string)) *KeyValueStorager_InsertValue_Call
func (*KeyValueStorager_InsertValue_Call) RunAndReturn ¶
func (_c *KeyValueStorager_InsertValue_Call) RunAndReturn(run func(types.Querier, string, string, string) error) *KeyValueStorager_InsertValue_Call
type KeyValueStorager_UpdateValue_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 (_c *KeyValueStorager_UpdateValue_Call) Return(_a0 error) *KeyValueStorager_UpdateValue_Call
func (*KeyValueStorager_UpdateValue_Call) Run ¶
func (_c *KeyValueStorager_UpdateValue_Call) Run(run func(tx types.Querier, owner string, key string, value string)) *KeyValueStorager_UpdateValue_Call
func (*KeyValueStorager_UpdateValue_Call) RunAndReturn ¶
func (_c *KeyValueStorager_UpdateValue_Call) RunAndReturn(run func(types.Querier, string, string, string) error) *KeyValueStorager_UpdateValue_Call
type Querier ¶
Querier is an autogenerated mock type for the Querier type
func NewQuerier ¶
NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Querier) EXPECT ¶
func (_m *Querier) EXPECT() *Querier_Expecter
func (*Querier) 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
type Querier_Exec_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
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 (_c *Querier_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Querier_QueryContext_Call
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
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 (_c *Querier_QueryRowContext_Call) Return(_a0 *sql.Row) *Querier_QueryRowContext_Call
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 ¶
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 (_c *Querier_QueryRow_Call) Return(_a0 *sql.Row) *Querier_QueryRow_Call
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 ¶
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 ¶
SQLTxer is an autogenerated mock type for the SQLTxer type
func NewSQLTxer ¶
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) EXPECT ¶
func (_m *SQLTxer) EXPECT() *SQLTxer_Expecter
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) QueryRowContext ¶ added in v0.7.0
QueryRowContext provides a mock function with given fields: ctx, query, args
type SQLTxer_Commit_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 (_c *SQLTxer_Commit_Call) Return(_a0 error) *SQLTxer_Commit_Call
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 ¶
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
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 (_c *SQLTxer_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *SQLTxer_QueryContext_Call
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
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 (_c *SQLTxer_QueryRowContext_Call) Return(_a0 *sql.Row) *SQLTxer_QueryRowContext_Call
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 ¶
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 (_c *SQLTxer_QueryRow_Call) Return(_a0 *sql.Row) *SQLTxer_QueryRow_Call
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 ¶
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 ¶
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 (_c *SQLTxer_Rollback_Call) Return(_a0 error) *SQLTxer_Rollback_Call
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 ¶
Txer is an autogenerated mock type for the Txer type
func NewTxer ¶
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) EXPECT ¶
func (_m *Txer) EXPECT() *Txer_Expecter
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) QueryRowContext ¶ added in v0.7.0
QueryRowContext provides a mock function with given fields: ctx, query, args
type Txer_AddCommitCallback_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 (_c *Txer_AddCommitCallback_Call) Return() *Txer_AddCommitCallback_Call
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 ¶
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 (_c *Txer_AddRollbackCallback_Call) Return() *Txer_AddRollbackCallback_Call
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 ¶
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 ¶
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
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 (_c *Txer_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Txer_QueryContext_Call
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
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 (_c *Txer_QueryRowContext_Call) Return(_a0 *sql.Row) *Txer_QueryRowContext_Call
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 ¶
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 ¶
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 ¶
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