mock

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

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

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

func (m *MockDBManager) IsReady() bool

IsReady 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) Type

func (m *MockDBManager) Type() string

Type mocks base method.

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

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

func (m *MockRows) Close() error

Close mocks base method.

func (*MockRows) ColumnTypes

func (m *MockRows) ColumnTypes() ([]*sql.ColumnType, error)

ColumnTypes mocks base method.

func (*MockRows) Columns

func (m *MockRows) Columns() ([]string, error)

Columns 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) Err

func (m *MockRows) Err() error

Err mocks base method.

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method.

func (*MockRows) NextResultSet

func (m *MockRows) NextResultSet() bool

NextResultSet mocks base method.

func (*MockRows) Scan

func (m *MockRows) Scan(arg0 ...interface{}) error

Scan 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.

Jump to

Keyboard shortcuts

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