Documentation ¶
Overview ¶
Package core_mock is a generated GoMock package.
Package core_mock is a generated GoMock package.
Index ¶
- type MockBaseVariable
- type MockBaseVariableMockRecorder
- 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(blockHash []byte) (*block.Block, error)
- func (m *MockChain) GetBlockByNumber(number int64) (*block.Block, error)
- func (m *MockChain) GetBlockNumberByTxHash(hash []byte) (int64, error)
- func (m *MockChain) GetHashByNumber(number int64) ([]byte, error)
- func (m *MockChain) GetReceipt(Hash []byte) (*tx.TxReceipt, error)
- func (m *MockChain) GetReceiptByTxHash(Hash []byte) (*tx.TxReceipt, error)
- func (m *MockChain) GetTx(hash []byte) (*tx.Tx, error)
- func (m *MockChain) HasReceipt(hash []byte) (bool, error)
- func (m *MockChain) HasTx(hash []byte) (bool, error)
- func (m *MockChain) Length() int64
- func (m *MockChain) Push(block *block.Block) error
- func (m *MockChain) SetLength(i int64)
- func (m *MockChain) Size() (int64, error)
- func (m *MockChain) Top() (*block.Block, error)
- func (m *MockChain) TxTotal() int64
- 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(blockHash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetBlockNumberByTxHash(hash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetHashByNumber(number interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetReceipt(Hash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetReceiptByTxHash(Hash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) GetTx(hash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) HasReceipt(hash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) HasTx(hash interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) Length() *gomock.Call
- func (mr *MockChainMockRecorder) Push(block interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) SetLength(i interface{}) *gomock.Call
- func (mr *MockChainMockRecorder) Size() *gomock.Call
- func (mr *MockChainMockRecorder) Top() *gomock.Call
- func (mr *MockChainMockRecorder) TxTotal() *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) StateDB ¶
func (m *MockBaseVariable) StateDB() db.MVCCDB
StateDB 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) StateDB ¶
func (mr *MockBaseVariableMockRecorder) StateDB() *gomock.Call
StateDB indicates an expected call of StateDB
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) GetBlockNumberByTxHash ¶
GetBlockNumberByTxHash mocks base method.
func (*MockChain) GetHashByNumber ¶
GetHashByNumber mocks base method.
func (*MockChain) GetReceipt ¶
GetReceipt mocks base method.
func (*MockChain) GetReceiptByTxHash ¶
GetReceiptByTxHash mocks base method.
func (*MockChain) HasReceipt ¶
HasReceipt 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(blockHash interface{}) *gomock.Call
GetBlockByHash indicates an expected call of GetBlockByHash.
func (*MockChainMockRecorder) GetBlockByNumber ¶
func (mr *MockChainMockRecorder) GetBlockByNumber(number interface{}) *gomock.Call
GetBlockByNumber indicates an expected call of GetBlockByNumber.
func (*MockChainMockRecorder) GetBlockNumberByTxHash ¶
func (mr *MockChainMockRecorder) GetBlockNumberByTxHash(hash interface{}) *gomock.Call
GetBlockNumberByTxHash indicates an expected call of GetBlockNumberByTxHash.
func (*MockChainMockRecorder) GetHashByNumber ¶
func (mr *MockChainMockRecorder) GetHashByNumber(number interface{}) *gomock.Call
GetHashByNumber indicates an expected call of GetHashByNumber.
func (*MockChainMockRecorder) GetReceipt ¶
func (mr *MockChainMockRecorder) GetReceipt(Hash interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt.
func (*MockChainMockRecorder) GetReceiptByTxHash ¶
func (mr *MockChainMockRecorder) GetReceiptByTxHash(Hash interface{}) *gomock.Call
GetReceiptByTxHash indicates an expected call of GetReceiptByTxHash.
func (*MockChainMockRecorder) GetTx ¶
func (mr *MockChainMockRecorder) GetTx(hash interface{}) *gomock.Call
GetTx indicates an expected call of GetTx.
func (*MockChainMockRecorder) HasReceipt ¶
func (mr *MockChainMockRecorder) HasReceipt(hash interface{}) *gomock.Call
HasReceipt indicates an expected call of HasReceipt.
func (*MockChainMockRecorder) HasTx ¶
func (mr *MockChainMockRecorder) HasTx(hash interface{}) *gomock.Call
HasTx indicates an expected call of HasTx.
func (*MockChainMockRecorder) Length ¶
func (mr *MockChainMockRecorder) Length() *gomock.Call
Length indicates an expected call of Length.
func (*MockChainMockRecorder) Push ¶
func (mr *MockChainMockRecorder) Push(block interface{}) *gomock.Call
Push indicates an expected call of Push.
func (*MockChainMockRecorder) SetLength ¶
func (mr *MockChainMockRecorder) SetLength(i interface{}) *gomock.Call
SetLength indicates an expected call of SetLength.
func (*MockChainMockRecorder) Size ¶
func (mr *MockChainMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size.
func (*MockChainMockRecorder) Top ¶
func (mr *MockChainMockRecorder) Top() *gomock.Call
Top indicates an expected call of Top.
func (*MockChainMockRecorder) TxTotal ¶
func (mr *MockChainMockRecorder) TxTotal() *gomock.Call
TxTotal indicates an expected call of TxTotal.