testutil

package
v0.0.0-...-5e90b7b Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileOptTestFile

func CompileOptTestFile(env *quasigo.Env, targetFunc, pkgPath string, parsed *ParsedTestFile) (quasigo.Func, error)

func CompileTestFile

func CompileTestFile(env *quasigo.Env, targetFunc, pkgPath string, parsed *ParsedTestFile) (quasigo.Func, error)

func CompileTestFunc

func CompileTestFunc(env *quasigo.Env, fn string, parsed *ParsedTestFile) (quasigo.Func, error)

Types

type ParsedTestFile

type ParsedTestFile struct {
	Ast   *ast.File
	Pkg   *types.Package
	Types *types.Info
	Fset  *token.FileSet
}

func ParseGoFile

func ParseGoFile(pkgPath, src string) (*ParsedTestFile, error)

type Runner

type Runner struct {
	Targets []RunnerTarget

	NewEnv func() *quasigo.Env
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(t *testing.T) *Runner

func (*Runner) Run

func (r *Runner) Run()

type RunnerTarget

type RunnerTarget struct {
	Name string
	Path string
}

Jump to

Keyboard shortcuts

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