Documentation ¶
Overview ¶
Package vm is a generated GoMock package.
Index ¶
- func SetUp(config *common.VMConfig) error
- type Engine
- type MockVM
- func (m *MockVM) Compile(arg0 *contract.Contract) (string, error)
- func (m *MockVM) EXPECT() *MockVMMockRecorder
- func (m *MockVM) Init() error
- func (m *MockVM) LoadAndCall(arg0 *host.Host, arg1 *contract.Contract, arg2 string, arg3 ...interface{}) ([]interface{}, *contract.Cost, error)
- func (m *MockVM) Release()
- type MockVMMockRecorder
- type Monitor
- type VM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine interface { SetUp(k, v string) error Exec(tx0 *tx.Tx, limit time.Duration) (*tx.TxReceipt, error) GC() }
Engine the smart contract engine
type MockVM ¶
type MockVM struct {
// contains filtered or unexported fields
}
MockVM is a mock of VM interface
func NewMockVM ¶
func NewMockVM(ctrl *gomock.Controller) *MockVM
NewMockVM creates a new mock instance
func (*MockVM) EXPECT ¶
func (m *MockVM) EXPECT() *MockVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockVMMockRecorder ¶
type MockVMMockRecorder struct {
// contains filtered or unexported fields
}
MockVMMockRecorder is the mock recorder for MockVM
func (*MockVMMockRecorder) Compile ¶
func (mr *MockVMMockRecorder) Compile(arg0 interface{}) *gomock.Call
Compile indicates an expected call of Compile
func (*MockVMMockRecorder) Init ¶
func (mr *MockVMMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockVMMockRecorder) LoadAndCall ¶
func (mr *MockVMMockRecorder) LoadAndCall(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
LoadAndCall indicates an expected call of LoadAndCall
func (*MockVMMockRecorder) Release ¶
func (mr *MockVMMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor ...
Click to show internal directories.
Click to hide internal directories.