evmtest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: 0BSD Imports: 3 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

Overview

Package evmtest provides named-entry fixtures for compiler and binding tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(vm *evm.VM, v values.Value, in, out []values.Value) error

Types

type Session

type Session struct {
	*evm.VM
	Limits evm.Limits
	// contains filtered or unexported fields
}

func New

func New(p *evm.Program) *Session

func (*Session) Reset

func (s *Session) Reset() error

func (*Session) Run

func (s *Session) Run(ctx context.Context, name string, in, out []values.Value) error

func (*Session) RunFunction

func (s *Session) RunFunction(ctx context.Context, fn *evm.Callable, in, out []values.Value) error

func (*Session) RunFunctionWithBudget

func (s *Session) RunFunctionWithBudget(ctx context.Context, fn *evm.Callable, in, out []values.Value, l evm.Limits) error

func (*Session) RunNative

func (s *Session) RunNative(ctx context.Context, fn evm.Native, l evm.Limits) error

func (*Session) RunWithBudget

func (s *Session) RunWithBudget(ctx context.Context, name string, in, out []values.Value, l evm.Limits) error

Jump to

Keyboard shortcuts

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