Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockDBManager
- func (m *MockDBManager) DelKey(key []byte) error
- func (m *MockDBManager) EXPECT() *MockDBManagerMockRecorder
- func (m *MockDBManager) GetKey(key []byte) (string, error)
- func (m *MockDBManager) IsInitialized() bool
- func (m *MockDBManager) IsLocked() bool
- func (m *MockDBManager) IsReady() bool
- func (m *MockDBManager) KVDB() *bolt.DB
- func (m *MockDBManager) RegisterInitScript(arg0 string)
- func (m *MockDBManager) SafeExec(arg0 string, arg1 ...interface{}) (state.Result, error)
- func (m *MockDBManager) SafeQuery(arg0 string, arg1 ...interface{}) (state.Rows, error)
- func (m *MockDBManager) SetKey(key []byte, value []byte) error
- func (m *MockDBManager) Type() string
- func (m *MockDBManager) Unlock(arg0 string) error
- type MockDBManagerMockRecorder
- func (mr *MockDBManagerMockRecorder) IsInitialized() *gomock.Call
- func (mr *MockDBManagerMockRecorder) IsLocked() *gomock.Call
- func (mr *MockDBManagerMockRecorder) IsReady() *gomock.Call
- func (mr *MockDBManagerMockRecorder) RegisterInitScript(arg0 interface{}) *gomock.Call
- func (mr *MockDBManagerMockRecorder) SafeExec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockDBManagerMockRecorder) SafeQuery(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockDBManagerMockRecorder) Type() *gomock.Call
- func (mr *MockDBManagerMockRecorder) Unlock(arg0 interface{}) *gomock.Call
- type MockResult
- type MockResultMockRecorder
- type MockRows
- func (m *MockRows) Close() error
- func (m *MockRows) ColumnTypes() ([]*sql.ColumnType, error)
- func (m *MockRows) Columns() ([]string, error)
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() error
- func (m *MockRows) Next() bool
- func (m *MockRows) NextResultSet() bool
- func (m *MockRows) Scan(arg0 ...interface{}) error
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
- func (mr *MockRowsMockRecorder) Columns() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) NextResultSet() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDBManager ¶
type MockDBManager struct {
// contains filtered or unexported fields
}
MockDBManager is a mock of DBManager interface.
func NewMockDBManager ¶
func NewMockDBManager(ctrl *gomock.Controller) *MockDBManager
NewMockDBManager creates a new mock instance.
func (*MockDBManager) DelKey ¶ added in v1.0.5
func (m *MockDBManager) DelKey(key []byte) error
func (*MockDBManager) EXPECT ¶
func (m *MockDBManager) EXPECT() *MockDBManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBManager) GetKey ¶ added in v1.0.5
func (m *MockDBManager) GetKey(key []byte) (string, error)
func (*MockDBManager) IsInitialized ¶
func (m *MockDBManager) IsInitialized() bool
IsInitialized mocks base method.
func (*MockDBManager) IsLocked ¶
func (m *MockDBManager) IsLocked() bool
IsLocked mocks base method.
func (*MockDBManager) KVDB ¶ added in v1.0.5
func (m *MockDBManager) KVDB() *bolt.DB
func (*MockDBManager) RegisterInitScript ¶
func (m *MockDBManager) RegisterInitScript(arg0 string)
RegisterInitScript mocks base method.
func (*MockDBManager) SafeExec ¶
func (m *MockDBManager) SafeExec(arg0 string, arg1 ...interface{}) (state.Result, error)
SafeExec mocks base method.
func (*MockDBManager) SafeQuery ¶
func (m *MockDBManager) SafeQuery(arg0 string, arg1 ...interface{}) (state.Rows, error)
SafeQuery mocks base method.
func (*MockDBManager) SetKey ¶ added in v1.0.5
func (m *MockDBManager) SetKey(key []byte, value []byte) error
func (*MockDBManager) Unlock ¶
func (m *MockDBManager) Unlock(arg0 string) error
Unlock mocks base method.
type MockDBManagerMockRecorder ¶
type MockDBManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockDBManagerMockRecorder is the mock recorder for MockDBManager.
func (*MockDBManagerMockRecorder) IsInitialized ¶
func (mr *MockDBManagerMockRecorder) IsInitialized() *gomock.Call
IsInitialized indicates an expected call of IsInitialized.
func (*MockDBManagerMockRecorder) IsLocked ¶
func (mr *MockDBManagerMockRecorder) IsLocked() *gomock.Call
IsLocked indicates an expected call of IsLocked.
func (*MockDBManagerMockRecorder) IsReady ¶
func (mr *MockDBManagerMockRecorder) IsReady() *gomock.Call
IsReady indicates an expected call of IsReady.
func (*MockDBManagerMockRecorder) RegisterInitScript ¶
func (mr *MockDBManagerMockRecorder) RegisterInitScript(arg0 interface{}) *gomock.Call
RegisterInitScript indicates an expected call of RegisterInitScript.
func (*MockDBManagerMockRecorder) SafeExec ¶
func (mr *MockDBManagerMockRecorder) SafeExec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SafeExec indicates an expected call of SafeExec.
func (*MockDBManagerMockRecorder) SafeQuery ¶
func (mr *MockDBManagerMockRecorder) SafeQuery(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SafeQuery indicates an expected call of SafeQuery.
func (*MockDBManagerMockRecorder) Type ¶
func (mr *MockDBManagerMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.
func (*MockDBManagerMockRecorder) Unlock ¶
func (mr *MockDBManagerMockRecorder) Unlock(arg0 interface{}) *gomock.Call
Unlock indicates an expected call of Unlock.
type MockResult ¶
type MockResult struct {
// contains filtered or unexported fields
}
MockResult is a mock of Result interface.
func NewMockResult ¶
func NewMockResult(ctrl *gomock.Controller) *MockResult
NewMockResult creates a new mock instance.
func (*MockResult) EXPECT ¶
func (m *MockResult) EXPECT() *MockResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResult) LastInsertId ¶
func (m *MockResult) LastInsertId() (int64, error)
LastInsertId mocks base method.
func (*MockResult) RowsAffected ¶
func (m *MockResult) RowsAffected() (int64, error)
RowsAffected mocks base method.
type MockResultMockRecorder ¶
type MockResultMockRecorder struct {
// contains filtered or unexported fields
}
MockResultMockRecorder is the mock recorder for MockResult.
func (*MockResultMockRecorder) LastInsertId ¶
func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call
LastInsertId indicates an expected call of LastInsertId.
func (*MockResultMockRecorder) RowsAffected ¶
func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call
RowsAffected indicates an expected call of RowsAffected.
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface.
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance.
func (*MockRows) ColumnTypes ¶
func (m *MockRows) ColumnTypes() ([]*sql.ColumnType, error)
ColumnTypes mocks base method.
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRows) NextResultSet ¶
NextResultSet mocks base method.
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows.
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRowsMockRecorder) ColumnTypes ¶
func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
ColumnTypes indicates an expected call of ColumnTypes.
func (*MockRowsMockRecorder) Columns ¶
func (mr *MockRowsMockRecorder) Columns() *gomock.Call
Columns indicates an expected call of Columns.
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockRowsMockRecorder) NextResultSet ¶
func (mr *MockRowsMockRecorder) NextResultSet() *gomock.Call
NextResultSet indicates an expected call of NextResultSet.
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.