Documentation
¶
Index ¶
- type DB
- type DB_Begin_Call
- type DB_Expecter
- type Option
- type Option_Execute_Call
- type Option_Expecter
- type Transaction
- type Transaction_Commit_Call
- type Transaction_Expecter
- type Transaction_Rollback_Call
- type Transactor
- type Transactor_Do_Call
- func (_c *Transactor_Do_Call) Return(_a0 error) *Transactor_Do_Call
- func (_c *Transactor_Do_Call) Run(run func(ctx context.Context, f func(context.Context) error)) *Transactor_Do_Call
- func (_c *Transactor_Do_Call) RunAndReturn(run func(context.Context, func(context.Context) error) error) *Transactor_Do_Call
- type Transactor_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is an autogenerated mock type for the DB type
func NewDB ¶
NewDB creates a new instance of DB. 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 (*DB) EXPECT ¶
func (_m *DB) EXPECT() *DB_Expecter
type DB_Begin_Call ¶
DB_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*DB_Begin_Call) Return ¶
func (_c *DB_Begin_Call) Return(_a0 tx.Transaction, _a1 error) *DB_Begin_Call
func (*DB_Begin_Call) Run ¶
func (_c *DB_Begin_Call) Run(run func(ctx context.Context)) *DB_Begin_Call
func (*DB_Begin_Call) RunAndReturn ¶
func (_c *DB_Begin_Call) RunAndReturn(run func(context.Context) (tx.Transaction, error)) *DB_Begin_Call
type DB_Expecter ¶
type DB_Expecter struct {
// contains filtered or unexported fields
}
func (*DB_Expecter) Begin ¶
func (_e *DB_Expecter) Begin(ctx interface{}) *DB_Begin_Call
Begin is a helper method to define mock.On call
- ctx context.Context
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
NewOption creates a new instance of Option. 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 (*Option) EXPECT ¶
func (_m *Option) EXPECT() *Option_Expecter
type Option_Execute_Call ¶
Option_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Option_Execute_Call) Return ¶
func (_c *Option_Execute_Call) Return() *Option_Execute_Call
func (*Option_Execute_Call) Run ¶
func (_c *Option_Execute_Call) Run(run func(_a0 *tx.TX)) *Option_Execute_Call
func (*Option_Execute_Call) RunAndReturn ¶
func (_c *Option_Execute_Call) RunAndReturn(run func(*tx.TX)) *Option_Execute_Call
type Option_Expecter ¶
type Option_Expecter struct {
// contains filtered or unexported fields
}
func (*Option_Expecter) Execute ¶
func (_e *Option_Expecter) Execute(_a0 interface{}) *Option_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *tx.TX
type Transaction ¶
Transaction is an autogenerated mock type for the Transaction type
func NewTransaction ¶
func NewTransaction(t interface { mock.TestingT Cleanup(func()) }) *Transaction
NewTransaction creates a new instance of Transaction. 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 (*Transaction) Commit ¶
func (_m *Transaction) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Transaction) EXPECT ¶
func (_m *Transaction) EXPECT() *Transaction_Expecter
type Transaction_Commit_Call ¶
Transaction_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Transaction_Commit_Call) Return ¶
func (_c *Transaction_Commit_Call) Return(_a0 error) *Transaction_Commit_Call
func (*Transaction_Commit_Call) Run ¶
func (_c *Transaction_Commit_Call) Run(run func(ctx context.Context)) *Transaction_Commit_Call
func (*Transaction_Commit_Call) RunAndReturn ¶
func (_c *Transaction_Commit_Call) RunAndReturn(run func(context.Context) error) *Transaction_Commit_Call
type Transaction_Expecter ¶
type Transaction_Expecter struct {
// contains filtered or unexported fields
}
func (*Transaction_Expecter) Commit ¶
func (_e *Transaction_Expecter) Commit(ctx interface{}) *Transaction_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*Transaction_Expecter) Rollback ¶
func (_e *Transaction_Expecter) Rollback(ctx interface{}) *Transaction_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
type Transaction_Rollback_Call ¶
Transaction_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Transaction_Rollback_Call) Return ¶
func (_c *Transaction_Rollback_Call) Return(_a0 error) *Transaction_Rollback_Call
func (*Transaction_Rollback_Call) Run ¶
func (_c *Transaction_Rollback_Call) Run(run func(ctx context.Context)) *Transaction_Rollback_Call
func (*Transaction_Rollback_Call) RunAndReturn ¶
func (_c *Transaction_Rollback_Call) RunAndReturn(run func(context.Context) error) *Transaction_Rollback_Call
type Transactor ¶
Transactor is an autogenerated mock type for the Transactor type
func NewTransactor ¶
func NewTransactor(t interface { mock.TestingT Cleanup(func()) }) *Transactor
NewTransactor creates a new instance of Transactor. 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 (*Transactor) EXPECT ¶
func (_m *Transactor) EXPECT() *Transactor_Expecter
type Transactor_Do_Call ¶
Transactor_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*Transactor_Do_Call) Return ¶
func (_c *Transactor_Do_Call) Return(_a0 error) *Transactor_Do_Call
func (*Transactor_Do_Call) Run ¶
func (_c *Transactor_Do_Call) Run(run func(ctx context.Context, f func(context.Context) error)) *Transactor_Do_Call
func (*Transactor_Do_Call) RunAndReturn ¶
func (_c *Transactor_Do_Call) RunAndReturn(run func(context.Context, func(context.Context) error) error) *Transactor_Do_Call
type Transactor_Expecter ¶
type Transactor_Expecter struct {
// contains filtered or unexported fields
}
func (*Transactor_Expecter) Do ¶
func (_e *Transactor_Expecter) Do(ctx interface{}, f interface{}) *Transactor_Do_Call
Do is a helper method to define mock.On call
- ctx context.Context
- f func(context.Context) error