mock

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 5 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Procedure

type Procedure struct {
	mock.Mock
}

Procedure is an autogenerated mock type for the Procedure type

func NewProcedure added in v0.26.1

func NewProcedure(t interface {
	mock.TestingT
	Cleanup(func())
}) *Procedure

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

func (_mock *Procedure) ComputationLimit(ctx fvm.Context) uint64

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

func (_mock *Procedure) ExecutionTime() logical.Time

ExecutionTime provides a mock function for the type Procedure

func (*Procedure) MemoryLimit added in v0.25.2

func (_mock *Procedure) MemoryLimit(ctx fvm.Context) uint64

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

func (_mock *Procedure) ShouldDisableMemoryAndInteractionLimits(ctx fvm.Context) bool

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

type ProcedureExecutor struct {
	mock.Mock
}

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 (*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

type ProcedureExecutor_Cleanup_Call struct {
	*mock.Call
}

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 (*ProcedureExecutor_Cleanup_Call) Run added in v0.46.0

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

type ProcedureExecutor_Execute_Call struct {
	*mock.Call
}

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 (*ProcedureExecutor_Execute_Call) Run added in v0.46.0

func (*ProcedureExecutor_Execute_Call) RunAndReturn added in v0.46.0

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

Cleanup is a helper method to define mock.On call

func (*ProcedureExecutor_Expecter) Execute added in v0.46.0

Execute is a helper method to define mock.On call

func (*ProcedureExecutor_Expecter) Output added in v0.46.0

Output is a helper method to define mock.On call

func (*ProcedureExecutor_Expecter) Preprocess added in v0.46.0

Preprocess is a helper method to define mock.On call

type ProcedureExecutor_Output_Call added in v0.46.0

type ProcedureExecutor_Output_Call struct {
	*mock.Call
}

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 (*ProcedureExecutor_Output_Call) Run added in v0.46.0

func (*ProcedureExecutor_Output_Call) RunAndReturn added in v0.46.0

type ProcedureExecutor_Preprocess_Call added in v0.46.0

type ProcedureExecutor_Preprocess_Call struct {
	*mock.Call
}

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 (*ProcedureExecutor_Preprocess_Call) Run added in v0.46.0

func (*ProcedureExecutor_Preprocess_Call) RunAndReturn added in v0.46.0

type Procedure_ComputationLimit_Call added in v0.46.0

type Procedure_ComputationLimit_Call struct {
	*mock.Call
}

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 (*Procedure_ComputationLimit_Call) Run added in v0.46.0

func (*Procedure_ComputationLimit_Call) RunAndReturn added in v0.46.0

type Procedure_ExecutionTime_Call added in v0.46.0

type Procedure_ExecutionTime_Call struct {
	*mock.Call
}

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 (*Procedure_ExecutionTime_Call) Run added in v0.46.0

func (*Procedure_ExecutionTime_Call) RunAndReturn added in v0.46.0

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

Type is a helper method to define mock.On call

type Procedure_MemoryLimit_Call added in v0.46.0

type Procedure_MemoryLimit_Call struct {
	*mock.Call
}

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 (*Procedure_MemoryLimit_Call) Run added in v0.46.0

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

type Procedure_NewExecutor_Call struct {
	*mock.Call
}

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 (*Procedure_NewExecutor_Call) Run added in v0.46.0

func (*Procedure_NewExecutor_Call) RunAndReturn added in v0.46.0

type Procedure_ShouldDisableMemoryAndInteractionLimits_Call added in v0.46.0

type Procedure_ShouldDisableMemoryAndInteractionLimits_Call struct {
	*mock.Call
}

Procedure_ShouldDisableMemoryAndInteractionLimits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldDisableMemoryAndInteractionLimits'

func (*Procedure_ShouldDisableMemoryAndInteractionLimits_Call) Return added in v0.46.0

func (*Procedure_ShouldDisableMemoryAndInteractionLimits_Call) Run added in v0.46.0

func (*Procedure_ShouldDisableMemoryAndInteractionLimits_Call) RunAndReturn added in v0.46.0

type Procedure_Type_Call added in v0.46.0

type Procedure_Type_Call struct {
	*mock.Call
}

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

type VM struct {
	mock.Mock
}

VM is an autogenerated mock type for the VM type

func NewVM added in v0.30.0

func NewVM(t interface {
	mock.TestingT
	Cleanup(func())
}) *VM

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

type VM_NewExecutor_Call struct {
	*mock.Call
}

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

type VM_Run_Call struct {
	*mock.Call
}

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

Jump to

Keyboard shortcuts

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