testutil

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSProgram

func CreateJSProgram(c Crashable, payload string) *goja.Program

func CreateTSProgram

func CreateTSProgram(c Crashable, payload string) *goja.Program

func NewMockPrinter

func NewMockPrinter() *mockPrinter

func NewMockRuntimeContext

func NewMockRuntimeContext() *mockRuntimeContext

Types

type Crashable

type Crashable interface {
	Fatal(...any)
}

Jump to

Keyboard shortcuts

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