parsertest

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expect

func Expect(t *testing.T, pkg *ast.Package, expected string)

Expect asserts an XGo AST package equals output or not.

func ExpectEx

func ExpectEx(t *testing.T, outfile string, pkg *ast.Package, expected []byte)

func ExpectNode

func ExpectNode(t *testing.T, node any, expected string)

ExpectNode asserts an XGo AST node equals output or not.

func Fprint

func Fprint(w io.Writer, pkg *ast.Package)

Fprint prints an XGo package.

func FprintNode

func FprintNode(w io.Writer, lead string, v any, prefix, indent string)

FprintNode prints an XGo AST node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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