Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type DB
- func (m *DB) Close() error
- func (m *DB) EXPECT() *DBMockRecorder
- func (m *DB) Get(arg0 context.Context, arg1 string) ([]byte, error)
- func (m *DB) GetKeys(arg0 context.Context, arg1 string) ([]string, error)
- func (m *DB) NewTransaction(arg0 context.Context, arg1 bool) (database.Transaction, context.Context, error)
- func (m *DB) Ping(arg0 context.Context) error
- func (m *DB) Set(arg0 context.Context, arg1 string, arg2 []byte) error
- type DBCloseCall
- type DBGetCall
- type DBGetKeysCall
- type DBMockRecorder
- func (mr *DBMockRecorder) Close() *DBCloseCall
- func (mr *DBMockRecorder) Get(arg0, arg1 any) *DBGetCall
- func (mr *DBMockRecorder) GetKeys(arg0, arg1 any) *DBGetKeysCall
- func (mr *DBMockRecorder) NewTransaction(arg0, arg1 any) *DBNewTransactionCall
- func (mr *DBMockRecorder) Ping(arg0 any) *DBPingCall
- func (mr *DBMockRecorder) Set(arg0, arg1, arg2 any) *DBSetCall
- type DBNewTransactionCall
- func (c *DBNewTransactionCall) Do(f func(context.Context, bool) (database.Transaction, context.Context, error)) *DBNewTransactionCall
- func (c *DBNewTransactionCall) DoAndReturn(f func(context.Context, bool) (database.Transaction, context.Context, error)) *DBNewTransactionCall
- func (c *DBNewTransactionCall) Return(arg0 database.Transaction, arg1 context.Context, arg2 error) *DBNewTransactionCall
- type DBPingCall
- type DBSetCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a mock of DB interface.
func (*DB) EXPECT ¶
func (m *DB) EXPECT() *DBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type DBCloseCall ¶
DBCloseCall wrap *gomock.Call
func (*DBCloseCall) Do ¶
func (c *DBCloseCall) Do(f func() error) *DBCloseCall
Do rewrite *gomock.Call.Do
func (*DBCloseCall) DoAndReturn ¶
func (c *DBCloseCall) DoAndReturn(f func() error) *DBCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*DBCloseCall) Return ¶
func (c *DBCloseCall) Return(arg0 error) *DBCloseCall
Return rewrite *gomock.Call.Return
type DBGetCall ¶
DBGetCall wrap *gomock.Call
func (*DBGetCall) DoAndReturn ¶
DoAndReturn rewrite *gomock.Call.DoAndReturn
type DBGetKeysCall ¶
DBGetKeysCall wrap *gomock.Call
func (*DBGetKeysCall) Do ¶
func (c *DBGetKeysCall) Do(f func(context.Context, string) ([]string, error)) *DBGetKeysCall
Do rewrite *gomock.Call.Do
func (*DBGetKeysCall) DoAndReturn ¶
func (c *DBGetKeysCall) DoAndReturn(f func(context.Context, string) ([]string, error)) *DBGetKeysCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*DBGetKeysCall) Return ¶
func (c *DBGetKeysCall) Return(arg0 []string, arg1 error) *DBGetKeysCall
Return rewrite *gomock.Call.Return
type DBMockRecorder ¶
type DBMockRecorder struct {
// contains filtered or unexported fields
}
DBMockRecorder is the mock recorder for DB.
func (*DBMockRecorder) Close ¶
func (mr *DBMockRecorder) Close() *DBCloseCall
Close indicates an expected call of Close.
func (*DBMockRecorder) Get ¶
func (mr *DBMockRecorder) Get(arg0, arg1 any) *DBGetCall
Get indicates an expected call of Get.
func (*DBMockRecorder) GetKeys ¶
func (mr *DBMockRecorder) GetKeys(arg0, arg1 any) *DBGetKeysCall
GetKeys indicates an expected call of GetKeys.
func (*DBMockRecorder) NewTransaction ¶
func (mr *DBMockRecorder) NewTransaction(arg0, arg1 any) *DBNewTransactionCall
NewTransaction indicates an expected call of NewTransaction.
func (*DBMockRecorder) Ping ¶
func (mr *DBMockRecorder) Ping(arg0 any) *DBPingCall
Ping indicates an expected call of Ping.
func (*DBMockRecorder) Set ¶
func (mr *DBMockRecorder) Set(arg0, arg1, arg2 any) *DBSetCall
Set indicates an expected call of Set.
type DBNewTransactionCall ¶
DBNewTransactionCall wrap *gomock.Call
func (*DBNewTransactionCall) Do ¶
func (c *DBNewTransactionCall) Do(f func(context.Context, bool) (database.Transaction, context.Context, error)) *DBNewTransactionCall
Do rewrite *gomock.Call.Do
func (*DBNewTransactionCall) DoAndReturn ¶
func (c *DBNewTransactionCall) DoAndReturn(f func(context.Context, bool) (database.Transaction, context.Context, error)) *DBNewTransactionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*DBNewTransactionCall) Return ¶
func (c *DBNewTransactionCall) Return(arg0 database.Transaction, arg1 context.Context, arg2 error) *DBNewTransactionCall
Return rewrite *gomock.Call.Return
type DBPingCall ¶
DBPingCall wrap *gomock.Call
func (*DBPingCall) Do ¶
func (c *DBPingCall) Do(f func(context.Context) error) *DBPingCall
Do rewrite *gomock.Call.Do
func (*DBPingCall) DoAndReturn ¶
func (c *DBPingCall) DoAndReturn(f func(context.Context) error) *DBPingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*DBPingCall) Return ¶
func (c *DBPingCall) Return(arg0 error) *DBPingCall
Return rewrite *gomock.Call.Return