Documentation ¶
Index ¶
- Constants
- func LoadAssert(L *lua.LState) int
- func LoadAssertions(L *lua.LState) int
- func LoadRequre(L *lua.LState) int
- func LoadSuite(L *lua.LState) int
- func PreloadAssert(L *lua.LState)
- func PreloadAssertions(L *lua.LState)
- func PreloadRequire(L *lua.LState)
- func PreloadSuite(L *lua.LState)
- func RunLuaTestFile(t *testing.T, preload PreloadFunc, filename string) (numTests int)
- type PreloadFunc
Constants ¶
View Source
const (
TType = "testing.T"
)
Variables ¶
This section is empty.
Functions ¶
func LoadAssert ¶ added in v0.3.4
func LoadAssertions ¶ added in v0.3.4
func LoadRequre ¶ added in v0.3.4
func PreloadAssert ¶ added in v0.3.4
func PreloadAssertions ¶ added in v0.3.4
func PreloadRequire ¶ added in v0.3.4
func PreloadSuite ¶ added in v0.3.2
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.