Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockVM
- func (m *MockVM) EXPECT() *MockVMMockRecorder
- func (m *MockVM) Get(arg0 string) goja.Value
- func (m *MockVM) Run(arg0 context.Context, arg1, arg2 string, arg3 ...vm.Option) (goja.Value, error)
- func (m *MockVM) Set(arg0 string, arg1 interface{}) error
- func (m *MockVM) ToObject(arg0 goja.Value) *goja.Object
- type MockVMMockRecorder
- func (mr *MockVMMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) Run(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockVMMockRecorder) ToObject(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
func (*MockVM) Run ¶
func (m *MockVM) Run(arg0 context.Context, arg1, arg2 string, arg3 ...vm.Option) (goja.Value, error)
Run mocks base method.
type MockVMMockRecorder ¶
type MockVMMockRecorder struct {
// contains filtered or unexported fields
}
MockVMMockRecorder is the mock recorder for MockVM.
func (*MockVMMockRecorder) Get ¶
func (mr *MockVMMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockVMMockRecorder) Run ¶
func (mr *MockVMMockRecorder) Run(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockVMMockRecorder) Set ¶
func (mr *MockVMMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockVMMockRecorder) ToObject ¶ added in v0.6.2
func (mr *MockVMMockRecorder) ToObject(arg0 interface{}) *gomock.Call
ToObject indicates an expected call of ToObject.
Click to show internal directories.
Click to hide internal directories.