cltest

package
v1.3.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Gop  *env.Gop
	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, expected string)

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 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 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