Documentation ¶
Overview ¶
Package core_mock is a generated GoMock package.
Package core_mock is a generated GoMock package.
Package core_mock is a generated GoMock package.
Index ¶
- type MockBaseVariable
- func (m *MockBaseVariable) BlockChain() block.Chain
- func (m *MockBaseVariable) Config() *common.Config
- func (m *MockBaseVariable) EXPECT() *MockBaseVariableMockRecorder
- func (m *MockBaseVariable) Mode() global.TMode
- func (m *MockBaseVariable) SetMode(arg0 global.TMode)
- func (m *MockBaseVariable) StateDB() db.MVCCDB
- func (m *MockBaseVariable) TxDB() global.TxDB
- func (m *MockBaseVariable) WitnessList() []string
- type MockBaseVariableMockRecorder
- func (mr *MockBaseVariableMockRecorder) BlockChain() *gomock.Call
- func (mr *MockBaseVariableMockRecorder) Config() *gomock.Call
- func (mr *MockBaseVariableMockRecorder) Mode() *gomock.Call
- func (mr *MockBaseVariableMockRecorder) SetMode(arg0 interface{}) *gomock.Call
- func (mr *MockBaseVariableMockRecorder) StateDB() *gomock.Call
- func (mr *MockBaseVariableMockRecorder) TxDB() *gomock.Call
- func (mr *MockBaseVariableMockRecorder) WitnessList() *gomock.Call
- type MockChain
- func (m *MockChain) CheckLength()
- func (m *MockChain) Close()
- func (m *MockChain) Draw(arg0, arg1 int64) string
- func (m *MockChain) EXPECT() *MockChainMockRecorder
- func (m *MockChain) GetBlockByHash(arg0 []byte) (*block.Block, error)
- func (m *MockChain) GetBlockByNumber(arg0 int64) (*block.Block, error)
- func (m *MockChain) GetBlockByteByHash(arg0 []byte) ([]byte, error)
- func (m *MockChain) GetHashByNumber(arg0 int64) ([]byte, error)
- func (m *MockChain) Length() int64
- func (m *MockChain) Push(arg0 *block.Block) error
- func (m *MockChain) Top() (*block.Block, error)
- type MockChainMockRecorder
- func (mr *MockChainMockRecorder) CheckLength() *gomock.Call
- func (mr *MockChainMockRecorder) Close() *gomock.Call
- func (mr *MockChainMockRecorder) Draw(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetBlockByteByHash(arg0 interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetHashByNumber(arg0 interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) Length() *gomock.Call
- func (mr *MockChainMockRecorder) Push(arg0 interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) Top() *gomock.Call
- type MockTxDB
- func (m *MockTxDB) Close()
- func (m *MockTxDB) EXPECT() *MockTxDBMockRecorder
- func (m *MockTxDB) GetReceipt(arg0 []byte) (*tx.TxReceipt, error)
- func (m *MockTxDB) GetReceiptByTxHash(arg0 []byte) (*tx.TxReceipt, error)
- func (m *MockTxDB) GetTx(arg0 []byte) (*tx.Tx, error)
- func (m *MockTxDB) HasReceipt(arg0 []byte) (bool, error)
- func (m *MockTxDB) HasTx(arg0 []byte) (bool, error)
- func (m *MockTxDB) Push(arg0 []*tx.Tx, arg1 []*tx.TxReceipt) error
- type MockTxDBMockRecorder
- func (mr *MockTxDBMockRecorder) Close() *gomock.Call
- func (mr *MockTxDBMockRecorder) GetReceipt(arg0 interface{}) *gomock.Call
- func (mr *MockTxDBMockRecorder) GetReceiptByTxHash(arg0 interface{}) *gomock.Call
- func (mr *MockTxDBMockRecorder) GetTx(arg0 interface{}) *gomock.Call
- func (mr *MockTxDBMockRecorder) HasReceipt(arg0 interface{}) *gomock.Call
- func (mr *MockTxDBMockRecorder) HasTx(arg0 interface{}) *gomock.Call
- func (mr *MockTxDBMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBaseVariable ¶
type MockBaseVariable struct {
// contains filtered or unexported fields
}
MockBaseVariable is a mock of BaseVariable interface
func NewMockBaseVariable ¶
func NewMockBaseVariable(ctrl *gomock.Controller) *MockBaseVariable
NewMockBaseVariable creates a new mock instance
func (*MockBaseVariable) BlockChain ¶
func (m *MockBaseVariable) BlockChain() block.Chain
BlockChain mocks base method
func (*MockBaseVariable) Config ¶
func (m *MockBaseVariable) Config() *common.Config
Config mocks base method
func (*MockBaseVariable) EXPECT ¶
func (m *MockBaseVariable) EXPECT() *MockBaseVariableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBaseVariable) Mode ¶
func (m *MockBaseVariable) Mode() global.TMode
Mode mocks base method
func (*MockBaseVariable) SetMode ¶
func (m *MockBaseVariable) SetMode(arg0 global.TMode)
SetMode mocks base method
func (*MockBaseVariable) StateDB ¶
func (m *MockBaseVariable) StateDB() db.MVCCDB
StateDB mocks base method
func (*MockBaseVariable) TxDB ¶
func (m *MockBaseVariable) TxDB() global.TxDB
TxDB mocks base method
func (*MockBaseVariable) WitnessList ¶
func (m *MockBaseVariable) WitnessList() []string
WitnessList mocks base method
type MockBaseVariableMockRecorder ¶
type MockBaseVariableMockRecorder struct {
// contains filtered or unexported fields
}
MockBaseVariableMockRecorder is the mock recorder for MockBaseVariable
func (*MockBaseVariableMockRecorder) BlockChain ¶
func (mr *MockBaseVariableMockRecorder) BlockChain() *gomock.Call
BlockChain indicates an expected call of BlockChain
func (*MockBaseVariableMockRecorder) Config ¶
func (mr *MockBaseVariableMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config
func (*MockBaseVariableMockRecorder) Mode ¶
func (mr *MockBaseVariableMockRecorder) Mode() *gomock.Call
Mode indicates an expected call of Mode
func (*MockBaseVariableMockRecorder) SetMode ¶
func (mr *MockBaseVariableMockRecorder) SetMode(arg0 interface{}) *gomock.Call
SetMode indicates an expected call of SetMode
func (*MockBaseVariableMockRecorder) StateDB ¶
func (mr *MockBaseVariableMockRecorder) StateDB() *gomock.Call
StateDB indicates an expected call of StateDB
func (*MockBaseVariableMockRecorder) TxDB ¶
func (mr *MockBaseVariableMockRecorder) TxDB() *gomock.Call
TxDB indicates an expected call of TxDB
func (*MockBaseVariableMockRecorder) WitnessList ¶
func (mr *MockBaseVariableMockRecorder) WitnessList() *gomock.Call
WitnessList indicates an expected call of WitnessList
type MockChain ¶
type MockChain struct {
// contains filtered or unexported fields
}
MockChain is a mock of Chain interface
func NewMockChain ¶
func NewMockChain(ctrl *gomock.Controller) *MockChain
NewMockChain creates a new mock instance
func (*MockChain) EXPECT ¶
func (m *MockChain) EXPECT() *MockChainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChain) GetBlockByHash ¶
GetBlockByHash mocks base method
func (*MockChain) GetBlockByNumber ¶
GetBlockByNumber mocks base method
func (*MockChain) GetBlockByteByHash ¶
GetBlockByteByHash mocks base method
func (*MockChain) GetHashByNumber ¶
GetHashByNumber mocks base method
type MockChainMockRecorder ¶
type MockChainMockRecorder struct {
// contains filtered or unexported fields
}
MockChainMockRecorder is the mock recorder for MockChain
func (*MockChainMockRecorder) CheckLength ¶
func (mr *MockChainMockRecorder) CheckLength() *gomock.Call
CheckLength indicates an expected call of CheckLength
func (*MockChainMockRecorder) Close ¶
func (mr *MockChainMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockChainMockRecorder) Draw ¶
func (mr *MockChainMockRecorder) Draw(arg0, arg1 interface{}) *gomock.Call
Draw indicates an expected call of Draw
func (*MockChainMockRecorder) GetBlockByHash ¶
func (mr *MockChainMockRecorder) GetBlockByHash(arg0 interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash
func (*MockChainMockRecorder) GetBlockByNumber ¶
func (mr *MockChainMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber
func (*MockChainMockRecorder) GetBlockByteByHash ¶
func (mr *MockChainMockRecorder) GetBlockByteByHash(arg0 interface{}) *gomock.Call
GetBlockByteByHash indicates an expected call of GetBlockByteByHash
func (*MockChainMockRecorder) GetHashByNumber ¶
func (mr *MockChainMockRecorder) GetHashByNumber(arg0 interface{}) *gomock.Call
GetHashByNumber indicates an expected call of GetHashByNumber
func (*MockChainMockRecorder) Length ¶
func (mr *MockChainMockRecorder) Length() *gomock.Call
Length indicates an expected call of Length
func (*MockChainMockRecorder) Push ¶
func (mr *MockChainMockRecorder) Push(arg0 interface{}) *gomock.Call
Push indicates an expected call of Push
func (*MockChainMockRecorder) Top ¶
func (mr *MockChainMockRecorder) Top() *gomock.Call
Top indicates an expected call of Top
type MockTxDB ¶
type MockTxDB struct {
// contains filtered or unexported fields
}
MockTxDB is a mock of TxDB interface
func NewMockTxDB ¶
func NewMockTxDB(ctrl *gomock.Controller) *MockTxDB
NewMockTxDB creates a new mock instance
func (*MockTxDB) EXPECT ¶
func (m *MockTxDB) EXPECT() *MockTxDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxDB) GetReceipt ¶
GetReceipt mocks base method
func (*MockTxDB) GetReceiptByTxHash ¶
GetReceiptByTxHash mocks base method
func (*MockTxDB) HasReceipt ¶
HasReceipt mocks base method
type MockTxDBMockRecorder ¶
type MockTxDBMockRecorder struct {
// contains filtered or unexported fields
}
MockTxDBMockRecorder is the mock recorder for MockTxDB
func (*MockTxDBMockRecorder) Close ¶
func (mr *MockTxDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockTxDBMockRecorder) GetReceipt ¶
func (mr *MockTxDBMockRecorder) GetReceipt(arg0 interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt
func (*MockTxDBMockRecorder) GetReceiptByTxHash ¶
func (mr *MockTxDBMockRecorder) GetReceiptByTxHash(arg0 interface{}) *gomock.Call
GetReceiptByTxHash indicates an expected call of GetReceiptByTxHash
func (*MockTxDBMockRecorder) GetTx ¶
func (mr *MockTxDBMockRecorder) GetTx(arg0 interface{}) *gomock.Call
GetTx indicates an expected call of GetTx
func (*MockTxDBMockRecorder) HasReceipt ¶
func (mr *MockTxDBMockRecorder) HasReceipt(arg0 interface{}) *gomock.Call
HasReceipt indicates an expected call of HasReceipt
func (*MockTxDBMockRecorder) HasTx ¶
func (mr *MockTxDBMockRecorder) HasTx(arg0 interface{}) *gomock.Call
HasTx indicates an expected call of HasTx
func (*MockTxDBMockRecorder) Push ¶
func (mr *MockTxDBMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
Push indicates an expected call of Push