cltest

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XGoRoot string
	XGo     *env.XGo
	Conf    *cl.Config
)

Functions

func Do

func Do(t *testing.T, gopcode, expected string)

func DoExt

func DoExt(t *testing.T, conf *cl.Config, pkgname, gopcode, expected string)

func DoFS

func DoFS(
	t *testing.T, conf *cl.Config,
	fs parser.FileSystem, dir string, filter func(fs.FileInfo) bool, pkgname string, exp any)

func DoWithFname

func DoWithFname(t *testing.T, gopcode, expected string, fname string)

func Error

func Error(t *testing.T, msg, src string)

func ErrorAst

func ErrorAst(t *testing.T, pkgname, filename, msg, src string)

func ErrorEx

func ErrorEx(t *testing.T, pkgname, filename, msg, src string)

func FromDir

func FromDir(t *testing.T, sel, relDir string)

func LookupClass

func LookupClass(ext string) (c *modfile.Project, ok bool)

func Mixed

func Mixed(t *testing.T, pkgname, gocode, gopcode, expected string, outline ...bool)

func Named

func Named(t *testing.T, name string, gopcode, expected string)

func Spx

func Spx(t *testing.T, gmx, spxcode, expected string)

func SpxErrorEx

func SpxErrorEx(t *testing.T, msg, gmx, spxcode, gmxfile, spxfile string)

func SpxErrorFS

func SpxErrorFS(t *testing.T, msg string, fs parser.FileSystem)

func SpxEx

func SpxEx(t *testing.T, gmx, spxcode, expected, gmxfile, spxfile string)

func SpxEx2

func SpxEx2(t *testing.T, gmx, spxcode, expected, gmxfile, spxfile, resultFile string)

func SpxFromDir

func SpxFromDir(t *testing.T, sel, relDir string)

func SpxTest

func SpxTest(t *testing.T, fs fsx.FileSystem, dir string, parseConf parser.Config, clConf *cl.Config, exp any, resultFile string)

func SpxWithConf

func SpxWithConf(t *testing.T, name string, conf *cl.Config, gmx, spxcode, expected, gmxfile, spxfile, resultFile string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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