Documentation ¶
Index ¶
Constants ¶
View Source
const (
TType = "testing.T"
)
Variables ¶
This section is empty.
Functions ¶
func RunLuaTestFile ¶
func RunLuaTestFile(t *testing.T, preload PreloadFunc, filename string) (numTests int)
RunLuaTestFile fires up a new state, registers the *testing.T and invokes all methods starting with Test. This allows the lua test files to operate similar to go tests - see shellescape/test/test_api.lua
Types ¶
type PreloadFunc ¶
func SeveralPreloadFuncs ¶
func SeveralPreloadFuncs(preloadFuncs ...PreloadFunc) PreloadFunc
SeveralPreloadFuncs combines several PreloadFuncs to one such as when tests want to preload theirs + inspect
Click to show internal directories.
Click to hide internal directories.