testutil

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 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 TestRuntime added in v0.43.2

type TestRuntime 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 (*TestRuntime) Config added in v0.43.2

func (t *TestRuntime) Config() runtime.Config

func (*TestRuntime) ExecuteScript added in v0.43.2

func (t *TestRuntime) ExecuteScript(_ runtime.Script, _ runtime.Context) (cadence.Value, error)

func (*TestRuntime) ExecuteTransaction added in v0.43.2

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

func (*TestRuntime) InvokeContractFunction added in v0.43.2

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

func (*TestRuntime) NewContractFunctionExecutor added in v0.43.2

func (t *TestRuntime) NewContractFunctionExecutor(
	_ common.AddressLocation,
	_ string,
	_ []cadence.Value,
	_ []sema.Type,
	_ runtime.Context,
) runtime.Executor

func (*TestRuntime) NewScriptExecutor added in v0.43.2

func (t *TestRuntime) NewScriptExecutor(_ runtime.Script, _ runtime.Context) runtime.Executor

func (*TestRuntime) NewTransactionExecutor added in v0.43.2

func (t *TestRuntime) NewTransactionExecutor(_ runtime.Script, _ runtime.Context) runtime.Executor

func (*TestRuntime) ParseAndCheckProgram added in v0.43.2

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

func (*TestRuntime) ReadStored added in v0.43.2

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

func (*TestRuntime) SetDebugger added in v0.43.2

func (t *TestRuntime) SetDebugger(_ *interpreter.Debugger)

func (*TestRuntime) Storage added in v0.43.2

Jump to

Keyboard shortcuts

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