test_utils

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile added in v1.8.6

func ParseAndCheckWithOptionsForCompiling added in v1.8.6

func ParseAndCheckWithOptionsForCompiling(
	t testing.TB,
	code string,
	location common.Location,
	options *ParseAndCheckOptions,
	checkerErrorHandler func(error),
	programs map[common.Location]*CompiledProgram,
) *sema.Checker

func ParseCheckAndCompile

func ParseCheckAndCompile(
	t testing.TB,
	code string,
	location common.Location,
	programs map[common.Location]*CompiledProgram,
) *bbq.InstructionProgram

func ParseCheckAndCompileCodeWithOptions

func ParseCheckAndCompileCodeWithOptions(
	t testing.TB,
	code string,
	location common.Location,
	options ParseCheckAndCompileOptions,
	programs CompiledPrograms,
) *bbq.InstructionProgram

func PrintProgram

func PrintProgram(name string, program *bbq.InstructionProgram)

func SingleIdentifierLocationResolver

func SingleIdentifierLocationResolver(t testing.TB) sema.LocationHandlerFunc

func TestBaseValueActivation

func TestBaseValueActivation(common.Location) *sema.VariableActivation

Types

type CompiledProgram

type CompiledProgram struct {
	Program              *bbq.InstructionProgram
	DesugaredElaboration *compiler.DesugaredElaboration
}

type CompiledPrograms

type CompiledPrograms map[common.Location]*CompiledProgram

type ParseCheckAndCompileOptions

type ParseCheckAndCompileOptions struct {
	ParseAndCheckOptions *ParseAndCheckOptions
	CompilerConfig       *compiler.Config
	CheckerErrorHandler  func(error)
}

Jump to

Keyboard shortcuts

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