gluatest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncSetup = "__test_setup"

FuncSetup is the name of a global variable containing a "setup" function. The setup function will be executed before each test function. If any setup function fails the test function that would follow it will not execute.

View Source
var FuncTeardown = "__test_teardown"

FuncTeardown is the name of a global variable containing a "teardown" function. A teardown function will execute after each test function or after a setup function has failed.

Functions

This section is empty.

Types

type File

type File struct {
	Module gluamodule.Module
	Path   string
}

File is a test file for a lua module.

func (*File) Load

func (m *File) Load(t testing.TB) *lua.LState

Load runs the loader to register module and then executes the test file.

func (*File) Test

func (m *File) Test(t testing.TB)

Test runs the specified test function

Jump to

Keyboard shortcuts

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