testutil

package
v0.35.9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: AGPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

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 TestInterpreterRuntime

type TestInterpreterRuntime struct {
	ReadStoredFunc     func(address common.Address, path cadence.Path, context runtime.Context) (cadence.Value, error)
	InvokeContractFunc func(a common.AddressLocation, s string, values []cadence.Value, types []sema.Type, ctx runtime.Context) (cadence.Value, error)
}

func (*TestInterpreterRuntime) Config added in v0.30.0

func (*TestInterpreterRuntime) ExecuteScript

func (*TestInterpreterRuntime) ExecuteTransaction

func (t *TestInterpreterRuntime) ExecuteTransaction(runtime.Script, runtime.Context) error

func (*TestInterpreterRuntime) InvokeContractFunction

func (t *TestInterpreterRuntime) InvokeContractFunction(a common.AddressLocation, s string, values []cadence.Value, types []sema.Type, ctx runtime.Context) (cadence.Value, error)

func (*TestInterpreterRuntime) NewContractFunctionExecutor

func (t *TestInterpreterRuntime) NewContractFunctionExecutor(contractLocation common.AddressLocation, functionName string, arguments []cadence.Value, argumentTypes []sema.Type, context runtime.Context) runtime.Executor

func (*TestInterpreterRuntime) NewScriptExecutor

func (t *TestInterpreterRuntime) NewScriptExecutor(script runtime.Script, context runtime.Context) runtime.Executor

func (*TestInterpreterRuntime) NewTransactionExecutor

func (t *TestInterpreterRuntime) NewTransactionExecutor(script runtime.Script, context runtime.Context) runtime.Executor

func (*TestInterpreterRuntime) ParseAndCheckProgram

func (t *TestInterpreterRuntime) ParseAndCheckProgram([]byte, runtime.Context) (*interpreter.Program, error)

func (*TestInterpreterRuntime) ReadStored

func (t *TestInterpreterRuntime) ReadStored(address common.Address, path cadence.Path, context runtime.Context) (cadence.Value, error)

func (*TestInterpreterRuntime) SetAtreeValidationEnabled

func (t *TestInterpreterRuntime) SetAtreeValidationEnabled(bool)

func (*TestInterpreterRuntime) SetContractUpdateValidationEnabled

func (t *TestInterpreterRuntime) SetContractUpdateValidationEnabled(bool)

func (*TestInterpreterRuntime) SetCoverageReport

func (t *TestInterpreterRuntime) SetCoverageReport(*runtime.CoverageReport)

func (*TestInterpreterRuntime) SetDebugger

func (t *TestInterpreterRuntime) SetDebugger(debugger *interpreter.Debugger)

func (*TestInterpreterRuntime) SetInvalidatedResourceValidationEnabled

func (t *TestInterpreterRuntime) SetInvalidatedResourceValidationEnabled(bool)

func (*TestInterpreterRuntime) SetResourceOwnerChangeHandlerEnabled

func (t *TestInterpreterRuntime) SetResourceOwnerChangeHandlerEnabled(bool)

func (*TestInterpreterRuntime) SetTracingEnabled

func (t *TestInterpreterRuntime) SetTracingEnabled(bool)

func (*TestInterpreterRuntime) Storage

Jump to

Keyboard shortcuts

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