mock

package
v0.37.21 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapProcedureOption added in v0.26.1

type BootstrapProcedureOption struct {
	mock.Mock
}

BootstrapProcedureOption is an autogenerated mock type for the BootstrapProcedureOption type

func NewBootstrapProcedureOption added in v0.26.1

func NewBootstrapProcedureOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *BootstrapProcedureOption

NewBootstrapProcedureOption creates a new instance of BootstrapProcedureOption. 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 (*BootstrapProcedureOption) Execute added in v0.26.1

Execute provides a mock function with given fields: _a0

type Option added in v0.26.1

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption added in v0.26.1

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

NewOption creates a new instance of Option. 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 (*Option) Execute added in v0.26.1

func (_m *Option) Execute(ctx fvm.Context) fvm.Context

Execute provides a mock function with given fields: ctx

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 given 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 given 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 given fields:

func (*ProcedureExecutor) Execute added in v0.30.0

func (_m *ProcedureExecutor) Execute() error

Execute provides a mock function with given fields:

func (*ProcedureExecutor) Output added in v0.30.0

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

Output provides a mock function with given fields:

func (*ProcedureExecutor) Preprocess added in v0.30.0

func (_m *ProcedureExecutor) Preprocess() error

Preprocess provides a mock function with given 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