mock

package
v0.32.11-verification-... Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: AGPL-3.0 Imports: 6 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 mockConstructorTestingTNewBootstrapProcedureOption) *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.

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 mockConstructorTestingTNewOption) *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.

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 mockConstructorTestingTNewProcedure) *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.

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 mockConstructorTestingTNewProcedureExecutor) *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.

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 mockConstructorTestingTNewVM) *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.

func (*VM) GetAccount added in v0.30.0

func (_m *VM) GetAccount(_a0 fvm.Context, _a1 flow.Address, _a2 snapshot.StorageSnapshot) (*flow.Account, error)

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

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