mock

package
v0.43.1-access-memory-... Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 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 (_m *Procedure) ComputationLimit(ctx fvm.Context) uint64

ComputationLimit provides a mock function with given fields: ctx

func (*Procedure) ExecutionTime added in v0.28.0

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

ExecutionTime provides a mock function with no fields

func (*Procedure) MemoryLimit added in v0.25.2

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

MemoryLimit provides a mock function with given fields: ctx

func (*Procedure) NewExecutor added in v0.30.0

func (_m *Procedure) NewExecutor(ctx fvm.Context, txnState storage.TransactionPreparer) fvm.ProcedureExecutor

NewExecutor provides a mock function with given fields: ctx, txnState

func (*Procedure) ShouldDisableMemoryAndInteractionLimits added in v0.28.0

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

ShouldDisableMemoryAndInteractionLimits provides a mock function with given fields: ctx

func (*Procedure) Type added in v0.28.0

func (_m *Procedure) Type() fvm.ProcedureType

Type provides a mock function with no fields

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 (_m *ProcedureExecutor) Cleanup()

Cleanup provides a mock function with no fields

func (*ProcedureExecutor) Execute added in v0.30.0

func (_m *ProcedureExecutor) Execute() error

Execute provides a mock function with no fields

func (*ProcedureExecutor) Output added in v0.30.0

func (_m *ProcedureExecutor) Output() fvm.ProcedureOutput

Output provides a mock function with no fields

func (*ProcedureExecutor) Preprocess added in v0.30.0

func (_m *ProcedureExecutor) Preprocess() error

Preprocess provides a mock function with no fields

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) NewExecutor added in v0.31.0

func (_m *VM) NewExecutor(_a0 fvm.Context, _a1 fvm.Procedure, _a2 storage.TransactionPreparer) fvm.ProcedureExecutor

NewExecutor provides a mock function with given fields: _a0, _a1, _a2

func (*VM) Run added in v0.30.0

Run provides a mock function with given fields: _a0, _a1, _a2

Jump to

Keyboard shortcuts

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