Documentation
¶
Index ¶
- type Procedure
- func (_mock *Procedure) ComputationLimit(ctx fvm.Context) uint64
- func (_m *Procedure) EXPECT() *Procedure_Expecter
- func (_mock *Procedure) ExecutionTime() logical.Time
- func (_mock *Procedure) MemoryLimit(ctx fvm.Context) uint64
- func (_mock *Procedure) NewExecutor(ctx fvm.Context, txnState storage.TransactionPreparer) fvm.ProcedureExecutor
- func (_mock *Procedure) ShouldDisableMemoryAndInteractionLimits(ctx fvm.Context) bool
- func (_mock *Procedure) Type() fvm.ProcedureType
- type ProcedureExecutor
- type ProcedureExecutor_Cleanup_Call
- type ProcedureExecutor_Execute_Call
- type ProcedureExecutor_Expecter
- func (_e *ProcedureExecutor_Expecter) Cleanup() *ProcedureExecutor_Cleanup_Call
- func (_e *ProcedureExecutor_Expecter) Execute() *ProcedureExecutor_Execute_Call
- func (_e *ProcedureExecutor_Expecter) Output() *ProcedureExecutor_Output_Call
- func (_e *ProcedureExecutor_Expecter) Preprocess() *ProcedureExecutor_Preprocess_Call
- type ProcedureExecutor_Output_Call
- func (_c *ProcedureExecutor_Output_Call) Return(procedureOutput fvm.ProcedureOutput) *ProcedureExecutor_Output_Call
- func (_c *ProcedureExecutor_Output_Call) Run(run func()) *ProcedureExecutor_Output_Call
- func (_c *ProcedureExecutor_Output_Call) RunAndReturn(run func() fvm.ProcedureOutput) *ProcedureExecutor_Output_Call
- type ProcedureExecutor_Preprocess_Call
- func (_c *ProcedureExecutor_Preprocess_Call) Return(err error) *ProcedureExecutor_Preprocess_Call
- func (_c *ProcedureExecutor_Preprocess_Call) Run(run func()) *ProcedureExecutor_Preprocess_Call
- func (_c *ProcedureExecutor_Preprocess_Call) RunAndReturn(run func() error) *ProcedureExecutor_Preprocess_Call
- type Procedure_ComputationLimit_Call
- func (_c *Procedure_ComputationLimit_Call) Return(v uint64) *Procedure_ComputationLimit_Call
- func (_c *Procedure_ComputationLimit_Call) Run(run func(ctx fvm.Context)) *Procedure_ComputationLimit_Call
- func (_c *Procedure_ComputationLimit_Call) RunAndReturn(run func(ctx fvm.Context) uint64) *Procedure_ComputationLimit_Call
- type Procedure_ExecutionTime_Call
- type Procedure_Expecter
- func (_e *Procedure_Expecter) ComputationLimit(ctx interface{}) *Procedure_ComputationLimit_Call
- func (_e *Procedure_Expecter) ExecutionTime() *Procedure_ExecutionTime_Call
- func (_e *Procedure_Expecter) MemoryLimit(ctx interface{}) *Procedure_MemoryLimit_Call
- func (_e *Procedure_Expecter) NewExecutor(ctx interface{}, txnState interface{}) *Procedure_NewExecutor_Call
- func (_e *Procedure_Expecter) ShouldDisableMemoryAndInteractionLimits(ctx interface{}) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
- func (_e *Procedure_Expecter) Type() *Procedure_Type_Call
- type Procedure_MemoryLimit_Call
- type Procedure_NewExecutor_Call
- func (_c *Procedure_NewExecutor_Call) Return(procedureExecutor fvm.ProcedureExecutor) *Procedure_NewExecutor_Call
- func (_c *Procedure_NewExecutor_Call) Run(run func(ctx fvm.Context, txnState storage.TransactionPreparer)) *Procedure_NewExecutor_Call
- func (_c *Procedure_NewExecutor_Call) RunAndReturn(...) *Procedure_NewExecutor_Call
- type Procedure_ShouldDisableMemoryAndInteractionLimits_Call
- func (_c *Procedure_ShouldDisableMemoryAndInteractionLimits_Call) Return(b bool) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
- func (_c *Procedure_ShouldDisableMemoryAndInteractionLimits_Call) Run(run func(ctx fvm.Context)) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
- func (_c *Procedure_ShouldDisableMemoryAndInteractionLimits_Call) RunAndReturn(run func(ctx fvm.Context) bool) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
- type Procedure_Type_Call
- type VM
- type VM_Expecter
- type VM_NewExecutor_Call
- type VM_Run_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Procedure ¶
Procedure is an autogenerated mock type for the Procedure type
func NewProcedure ¶ added in v0.26.1
NewProcedure creates a new instance of Procedure. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Procedure) ComputationLimit ¶ added in v0.25.2
ComputationLimit provides a mock function for the type Procedure
func (*Procedure) EXPECT ¶ added in v0.46.0
func (_m *Procedure) EXPECT() *Procedure_Expecter
func (*Procedure) ExecutionTime ¶ added in v0.28.0
ExecutionTime provides a mock function for the type Procedure
func (*Procedure) MemoryLimit ¶ added in v0.25.2
MemoryLimit provides a mock function for the type Procedure
func (*Procedure) NewExecutor ¶ added in v0.30.0
func (_mock *Procedure) NewExecutor(ctx fvm.Context, txnState storage.TransactionPreparer) fvm.ProcedureExecutor
NewExecutor provides a mock function for the type Procedure
func (*Procedure) ShouldDisableMemoryAndInteractionLimits ¶ added in v0.28.0
ShouldDisableMemoryAndInteractionLimits provides a mock function for the type Procedure
func (*Procedure) Type ¶ added in v0.28.0
func (_mock *Procedure) Type() fvm.ProcedureType
Type provides a mock function for the type Procedure
type ProcedureExecutor ¶ added in v0.30.0
ProcedureExecutor is an autogenerated mock type for the ProcedureExecutor type
func NewProcedureExecutor ¶ added in v0.30.0
func NewProcedureExecutor(t interface {
mock.TestingT
Cleanup(func())
}) *ProcedureExecutor
NewProcedureExecutor creates a new instance of ProcedureExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProcedureExecutor) Cleanup ¶ added in v0.30.0
func (_mock *ProcedureExecutor) Cleanup()
Cleanup provides a mock function for the type ProcedureExecutor
func (*ProcedureExecutor) EXPECT ¶ added in v0.46.0
func (_m *ProcedureExecutor) EXPECT() *ProcedureExecutor_Expecter
func (*ProcedureExecutor) Execute ¶ added in v0.30.0
func (_mock *ProcedureExecutor) Execute() error
Execute provides a mock function for the type ProcedureExecutor
func (*ProcedureExecutor) Output ¶ added in v0.30.0
func (_mock *ProcedureExecutor) Output() fvm.ProcedureOutput
Output provides a mock function for the type ProcedureExecutor
func (*ProcedureExecutor) Preprocess ¶ added in v0.30.0
func (_mock *ProcedureExecutor) Preprocess() error
Preprocess provides a mock function for the type ProcedureExecutor
type ProcedureExecutor_Cleanup_Call ¶ added in v0.46.0
ProcedureExecutor_Cleanup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cleanup'
func (*ProcedureExecutor_Cleanup_Call) Return ¶ added in v0.46.0
func (_c *ProcedureExecutor_Cleanup_Call) Return() *ProcedureExecutor_Cleanup_Call
func (*ProcedureExecutor_Cleanup_Call) Run ¶ added in v0.46.0
func (_c *ProcedureExecutor_Cleanup_Call) Run(run func()) *ProcedureExecutor_Cleanup_Call
func (*ProcedureExecutor_Cleanup_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcedureExecutor_Cleanup_Call) RunAndReturn(run func()) *ProcedureExecutor_Cleanup_Call
type ProcedureExecutor_Execute_Call ¶ added in v0.46.0
ProcedureExecutor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*ProcedureExecutor_Execute_Call) Return ¶ added in v0.46.0
func (_c *ProcedureExecutor_Execute_Call) Return(err error) *ProcedureExecutor_Execute_Call
func (*ProcedureExecutor_Execute_Call) Run ¶ added in v0.46.0
func (_c *ProcedureExecutor_Execute_Call) Run(run func()) *ProcedureExecutor_Execute_Call
func (*ProcedureExecutor_Execute_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcedureExecutor_Execute_Call) RunAndReturn(run func() error) *ProcedureExecutor_Execute_Call
type ProcedureExecutor_Expecter ¶ added in v0.46.0
type ProcedureExecutor_Expecter struct {
// contains filtered or unexported fields
}
func (*ProcedureExecutor_Expecter) Cleanup ¶ added in v0.46.0
func (_e *ProcedureExecutor_Expecter) Cleanup() *ProcedureExecutor_Cleanup_Call
Cleanup is a helper method to define mock.On call
func (*ProcedureExecutor_Expecter) Execute ¶ added in v0.46.0
func (_e *ProcedureExecutor_Expecter) Execute() *ProcedureExecutor_Execute_Call
Execute is a helper method to define mock.On call
func (*ProcedureExecutor_Expecter) Output ¶ added in v0.46.0
func (_e *ProcedureExecutor_Expecter) Output() *ProcedureExecutor_Output_Call
Output is a helper method to define mock.On call
func (*ProcedureExecutor_Expecter) Preprocess ¶ added in v0.46.0
func (_e *ProcedureExecutor_Expecter) Preprocess() *ProcedureExecutor_Preprocess_Call
Preprocess is a helper method to define mock.On call
type ProcedureExecutor_Output_Call ¶ added in v0.46.0
ProcedureExecutor_Output_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Output'
func (*ProcedureExecutor_Output_Call) Return ¶ added in v0.46.0
func (_c *ProcedureExecutor_Output_Call) Return(procedureOutput fvm.ProcedureOutput) *ProcedureExecutor_Output_Call
func (*ProcedureExecutor_Output_Call) Run ¶ added in v0.46.0
func (_c *ProcedureExecutor_Output_Call) Run(run func()) *ProcedureExecutor_Output_Call
func (*ProcedureExecutor_Output_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcedureExecutor_Output_Call) RunAndReturn(run func() fvm.ProcedureOutput) *ProcedureExecutor_Output_Call
type ProcedureExecutor_Preprocess_Call ¶ added in v0.46.0
ProcedureExecutor_Preprocess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Preprocess'
func (*ProcedureExecutor_Preprocess_Call) Return ¶ added in v0.46.0
func (_c *ProcedureExecutor_Preprocess_Call) Return(err error) *ProcedureExecutor_Preprocess_Call
func (*ProcedureExecutor_Preprocess_Call) Run ¶ added in v0.46.0
func (_c *ProcedureExecutor_Preprocess_Call) Run(run func()) *ProcedureExecutor_Preprocess_Call
func (*ProcedureExecutor_Preprocess_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProcedureExecutor_Preprocess_Call) RunAndReturn(run func() error) *ProcedureExecutor_Preprocess_Call
type Procedure_ComputationLimit_Call ¶ added in v0.46.0
Procedure_ComputationLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputationLimit'
func (*Procedure_ComputationLimit_Call) Return ¶ added in v0.46.0
func (_c *Procedure_ComputationLimit_Call) Return(v uint64) *Procedure_ComputationLimit_Call
func (*Procedure_ComputationLimit_Call) Run ¶ added in v0.46.0
func (_c *Procedure_ComputationLimit_Call) Run(run func(ctx fvm.Context)) *Procedure_ComputationLimit_Call
func (*Procedure_ComputationLimit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Procedure_ComputationLimit_Call) RunAndReturn(run func(ctx fvm.Context) uint64) *Procedure_ComputationLimit_Call
type Procedure_ExecutionTime_Call ¶ added in v0.46.0
Procedure_ExecutionTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecutionTime'
func (*Procedure_ExecutionTime_Call) Return ¶ added in v0.46.0
func (_c *Procedure_ExecutionTime_Call) Return(time logical.Time) *Procedure_ExecutionTime_Call
func (*Procedure_ExecutionTime_Call) Run ¶ added in v0.46.0
func (_c *Procedure_ExecutionTime_Call) Run(run func()) *Procedure_ExecutionTime_Call
func (*Procedure_ExecutionTime_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Procedure_ExecutionTime_Call) RunAndReturn(run func() logical.Time) *Procedure_ExecutionTime_Call
type Procedure_Expecter ¶ added in v0.46.0
type Procedure_Expecter struct {
// contains filtered or unexported fields
}
func (*Procedure_Expecter) ComputationLimit ¶ added in v0.46.0
func (_e *Procedure_Expecter) ComputationLimit(ctx interface{}) *Procedure_ComputationLimit_Call
ComputationLimit is a helper method to define mock.On call
- ctx fvm.Context
func (*Procedure_Expecter) ExecutionTime ¶ added in v0.46.0
func (_e *Procedure_Expecter) ExecutionTime() *Procedure_ExecutionTime_Call
ExecutionTime is a helper method to define mock.On call
func (*Procedure_Expecter) MemoryLimit ¶ added in v0.46.0
func (_e *Procedure_Expecter) MemoryLimit(ctx interface{}) *Procedure_MemoryLimit_Call
MemoryLimit is a helper method to define mock.On call
- ctx fvm.Context
func (*Procedure_Expecter) NewExecutor ¶ added in v0.46.0
func (_e *Procedure_Expecter) NewExecutor(ctx interface{}, txnState interface{}) *Procedure_NewExecutor_Call
NewExecutor is a helper method to define mock.On call
- ctx fvm.Context
- txnState storage.TransactionPreparer
func (*Procedure_Expecter) ShouldDisableMemoryAndInteractionLimits ¶ added in v0.46.0
func (_e *Procedure_Expecter) ShouldDisableMemoryAndInteractionLimits(ctx interface{}) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
ShouldDisableMemoryAndInteractionLimits is a helper method to define mock.On call
- ctx fvm.Context
func (*Procedure_Expecter) Type ¶ added in v0.46.0
func (_e *Procedure_Expecter) Type() *Procedure_Type_Call
Type is a helper method to define mock.On call
type Procedure_MemoryLimit_Call ¶ added in v0.46.0
Procedure_MemoryLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MemoryLimit'
func (*Procedure_MemoryLimit_Call) Return ¶ added in v0.46.0
func (_c *Procedure_MemoryLimit_Call) Return(v uint64) *Procedure_MemoryLimit_Call
func (*Procedure_MemoryLimit_Call) Run ¶ added in v0.46.0
func (_c *Procedure_MemoryLimit_Call) Run(run func(ctx fvm.Context)) *Procedure_MemoryLimit_Call
func (*Procedure_MemoryLimit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Procedure_MemoryLimit_Call) RunAndReturn(run func(ctx fvm.Context) uint64) *Procedure_MemoryLimit_Call
type Procedure_NewExecutor_Call ¶ added in v0.46.0
Procedure_NewExecutor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewExecutor'
func (*Procedure_NewExecutor_Call) Return ¶ added in v0.46.0
func (_c *Procedure_NewExecutor_Call) Return(procedureExecutor fvm.ProcedureExecutor) *Procedure_NewExecutor_Call
func (*Procedure_NewExecutor_Call) Run ¶ added in v0.46.0
func (_c *Procedure_NewExecutor_Call) Run(run func(ctx fvm.Context, txnState storage.TransactionPreparer)) *Procedure_NewExecutor_Call
func (*Procedure_NewExecutor_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Procedure_NewExecutor_Call) RunAndReturn(run func(ctx fvm.Context, txnState storage.TransactionPreparer) fvm.ProcedureExecutor) *Procedure_NewExecutor_Call
type Procedure_ShouldDisableMemoryAndInteractionLimits_Call ¶ added in v0.46.0
Procedure_ShouldDisableMemoryAndInteractionLimits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldDisableMemoryAndInteractionLimits'
func (*Procedure_ShouldDisableMemoryAndInteractionLimits_Call) Run ¶ added in v0.46.0
func (_c *Procedure_ShouldDisableMemoryAndInteractionLimits_Call) Run(run func(ctx fvm.Context)) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
func (*Procedure_ShouldDisableMemoryAndInteractionLimits_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Procedure_ShouldDisableMemoryAndInteractionLimits_Call) RunAndReturn(run func(ctx fvm.Context) bool) *Procedure_ShouldDisableMemoryAndInteractionLimits_Call
type Procedure_Type_Call ¶ added in v0.46.0
Procedure_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'
func (*Procedure_Type_Call) Return ¶ added in v0.46.0
func (_c *Procedure_Type_Call) Return(procedureType fvm.ProcedureType) *Procedure_Type_Call
func (*Procedure_Type_Call) Run ¶ added in v0.46.0
func (_c *Procedure_Type_Call) Run(run func()) *Procedure_Type_Call
func (*Procedure_Type_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Procedure_Type_Call) RunAndReturn(run func() fvm.ProcedureType) *Procedure_Type_Call
type VM ¶ added in v0.30.0
VM is an autogenerated mock type for the VM type
func NewVM ¶ added in v0.30.0
NewVM creates a new instance of VM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*VM) EXPECT ¶ added in v0.46.0
func (_m *VM) EXPECT() *VM_Expecter
func (*VM) NewExecutor ¶ added in v0.31.0
func (_mock *VM) NewExecutor(context fvm.Context, procedure fvm.Procedure, transactionPreparer storage.TransactionPreparer) fvm.ProcedureExecutor
NewExecutor provides a mock function for the type VM
func (*VM) Run ¶ added in v0.30.0
func (_mock *VM) Run(context fvm.Context, procedure fvm.Procedure, storageSnapshot snapshot.StorageSnapshot) (*snapshot.ExecutionSnapshot, fvm.ProcedureOutput, error)
Run provides a mock function for the type VM
type VM_Expecter ¶ added in v0.46.0
type VM_Expecter struct {
// contains filtered or unexported fields
}
func (*VM_Expecter) NewExecutor ¶ added in v0.46.0
func (_e *VM_Expecter) NewExecutor(context interface{}, procedure interface{}, transactionPreparer interface{}) *VM_NewExecutor_Call
NewExecutor is a helper method to define mock.On call
- context fvm.Context
- procedure fvm.Procedure
- transactionPreparer storage.TransactionPreparer
func (*VM_Expecter) Run ¶ added in v0.46.0
func (_e *VM_Expecter) Run(context interface{}, procedure interface{}, storageSnapshot interface{}) *VM_Run_Call
Run is a helper method to define mock.On call
- context fvm.Context
- procedure fvm.Procedure
- storageSnapshot snapshot.StorageSnapshot
type VM_NewExecutor_Call ¶ added in v0.46.0
VM_NewExecutor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewExecutor'
func (*VM_NewExecutor_Call) Return ¶ added in v0.46.0
func (_c *VM_NewExecutor_Call) Return(procedureExecutor fvm.ProcedureExecutor) *VM_NewExecutor_Call
func (*VM_NewExecutor_Call) Run ¶ added in v0.46.0
func (_c *VM_NewExecutor_Call) Run(run func(context fvm.Context, procedure fvm.Procedure, transactionPreparer storage.TransactionPreparer)) *VM_NewExecutor_Call
func (*VM_NewExecutor_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VM_NewExecutor_Call) RunAndReturn(run func(context fvm.Context, procedure fvm.Procedure, transactionPreparer storage.TransactionPreparer) fvm.ProcedureExecutor) *VM_NewExecutor_Call
type VM_Run_Call ¶ added in v0.46.0
VM_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*VM_Run_Call) Return ¶ added in v0.46.0
func (_c *VM_Run_Call) Return(executionSnapshot *snapshot.ExecutionSnapshot, procedureOutput fvm.ProcedureOutput, err error) *VM_Run_Call
func (*VM_Run_Call) Run ¶ added in v0.46.0
func (_c *VM_Run_Call) Run(run func(context fvm.Context, procedure fvm.Procedure, storageSnapshot snapshot.StorageSnapshot)) *VM_Run_Call
func (*VM_Run_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VM_Run_Call) RunAndReturn(run func(context fvm.Context, procedure fvm.Procedure, storageSnapshot snapshot.StorageSnapshot) (*snapshot.ExecutionSnapshot, fvm.ProcedureOutput, error)) *VM_Run_Call