mock

package
v0.30.3-archive-node Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 6 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 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.Transaction) fvm.ProcedureExecutor

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

func (*Procedure) SetOutput added in v0.30.0

func (_m *Procedure) SetOutput(output fvm.ProcedureOutput)

SetOutput provides a mock function with given fields: output

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 state.StorageSnapshot) (*flow.Account, error)

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

func (*VM) Run added in v0.30.0

func (_m *VM) Run(_a0 fvm.Context, _a1 fvm.Procedure, _a2 state.View) error

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

func (*VM) RunV2 added in v0.30.0

RunV2 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