testutil

package
v0.33.30 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

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