cltest

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 23 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

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 DoFSEx added in v1.7.1

func DoFSEx(
	t *testing.T, conf *cl.Config,
	fs parser.FileSystem, dir string, filter func(fs.FileInfo) bool, pkgname string, exp, expJS 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 FromDirEx added in v1.7.1

func FromDirEx(t *testing.T, sel, relDir string, genGo, genJS bool)

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