cltest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GopRoot string
	Gop     *env.Gop
	Conf    *cl.Config
)

Functions

func Do added in v1.3.0

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

func DoExt added in v1.3.0

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

func DoFS added in v1.3.0

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

func DoWithFname added in v1.3.0

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

func EnableTypesalias added in v1.3.8

func EnableTypesalias() bool

func Error added in v1.3.0

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

func ErrorAst added in v1.3.0

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

func ErrorEx added in v1.3.0

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

func FromDir added in v1.3.0

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

func Go1Point added in v1.3.8

func Go1Point() int

func LookupClass added in v1.3.0

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

func Mixed added in v1.3.0

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

func Named added in v1.3.0

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

func Spx added in v1.3.0

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

func SpxErrorEx added in v1.3.0

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

func SpxEx added in v1.3.0

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

func SpxEx2 added in v1.3.0

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

func SpxFromDir added in v1.3.9

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

func SpxTest added in v1.3.9

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

func SpxWithConf added in v1.3.0

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