Documentation ¶
Index ¶
- func CheckLines(output []byte, checkers []LineChecker) error
- func RunLuaTest(source []byte, setup func(*rt.Runtime) func()) error
- func RunLuaTestFile(t *testing.T, path string, setup func(*rt.Runtime) func())
- func RunLuaTestsInDir(t *testing.T, dirpath string, setup func(*rt.Runtime) func(), ...)
- func RunSource(r *rt.Runtime, source []byte)
- type LineChecker
- type LiteralLineChecker
- type RegexLineChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLines ¶
func CheckLines(output []byte, checkers []LineChecker) error
func RunLuaTest ¶
RunLuaTest runs the lua test code in source, running setup if non-nil beforehand (with the Runtime instance that will be used in the test).
func RunLuaTestFile ¶
Types ¶
type LineChecker ¶
type LineChecker struct { SourceLineno int // contains filtered or unexported fields }
func ExtractLineCheckers ¶
func ExtractLineCheckers(source []byte) []LineChecker
type LiteralLineChecker ¶
type LiteralLineChecker []byte
func (LiteralLineChecker) CheckLine ¶
func (c LiteralLineChecker) CheckLine(output []byte) error
type RegexLineChecker ¶
func (*RegexLineChecker) CheckLine ¶
func (c *RegexLineChecker) CheckLine(output []byte) error
Click to show internal directories.
Click to hide internal directories.