Documentation
¶
Overview ¶
Helper functions for running scripts snippets in tests.
Index ¶
- func Assert(t *testing.T, ok bool, msg ...interface{})
- func AssertBlock(t *testing.T, l *lua.State, blk string, v interface{})
- func AssertTyp(t *testing.T, l *lua.State, typ lua.TypeID, styp lua.STypeID, idx int)
- func Assertf(t *testing.T, ok bool, format string, msg ...interface{})
- func MkState() *lua.State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶
Assert fails the test and logs the message if "ok" is false.
This is purely a lazy convenience.
func AssertBlock ¶
AssertBlock runs a block of Lua code. The test fails if there is an error or if "v" does not match the snippet's return value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.