Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 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 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