mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockVM) Compile(arg0, arg1 string, arg2 bool) (*goja.Program, error)

Compile mocks base method.

func (*MockVM) EXPECT

func (m *MockVM) EXPECT() *MockVMMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVM) Get

func (m *MockVM) Get(arg0 string) goja.Value

Get mocks base method.

func (*MockVM) GetObject added in v0.3.0

func (m *MockVM) GetObject(arg0 goja.Value) *goja.Object

GetObject mocks base method.

func (*MockVM) RunProgram added in v0.3.0

func (m *MockVM) RunProgram(arg0 *goja.Program) (goja.Value, error)

RunProgram mocks base method.

func (*MockVM) RunString added in v0.4.0

func (m *MockVM) RunString(arg0 string) (goja.Value, error)

RunString mocks base method.

func (*MockVM) Set

func (m *MockVM) Set(arg0 string, arg1 interface{}) error

Set mocks base method.

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, arg1, arg2 interface{}) *gomock.Call

Compile indicates an expected call of Compile.

func (*MockVMMockRecorder) Get

func (mr *MockVMMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockVMMockRecorder) GetObject added in v0.3.0

func (mr *MockVMMockRecorder) GetObject(arg0 interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockVMMockRecorder) RunProgram added in v0.3.0

func (mr *MockVMMockRecorder) RunProgram(arg0 interface{}) *gomock.Call

RunProgram indicates an expected call of RunProgram.

func (*MockVMMockRecorder) RunString added in v0.4.0

func (mr *MockVMMockRecorder) RunString(arg0 interface{}) *gomock.Call

RunString indicates an expected call of RunString.

func (*MockVMMockRecorder) Set

func (mr *MockVMMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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