cltest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(t *testing.T, noEntrypoint bool, script string, idx ...int) *ts.TestCase

Call runs a script and gets the last expression value to check

func Expect

func Expect(t *testing.T, script string, expected string, panicMsg ...interface{})

Expect runs a script and check expected output and if panic or not.

func FromTestdata

func FromTestdata(t *testing.T, dir, sel, exclude string)

FromTestdata - run test cases from a directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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