controllers

package
v0.0.0-...-5c4152b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2013 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NONE = []reflect.Value{}

Functions

This section is empty.

Types

type TestDesc

type TestDesc struct {
	Name string
}

type TestResult

type TestResult struct {
	Name      string
	Passed    bool
	ErrorHtml template.HTML
}

type TestRunner

type TestRunner struct {
	*rev.Controller
}

func (TestRunner) Index

func (c TestRunner) Index() rev.Result

func (TestRunner) List

func (c TestRunner) List() rev.Result

List returns a JSON list of test suites and tests. Used by the "test" command line tool.

func (TestRunner) Run

func (c TestRunner) Run(suite, test string) rev.Result

Run runs a single test, given by the argument.

type TestSuiteDesc

type TestSuiteDesc struct {
	Name  string
	Tests []TestDesc
}

func DescribeSuite

func DescribeSuite(testSuite interface{}) TestSuiteDesc

type TestSuiteResult

type TestSuiteResult struct {
	Name    string
	Passed  bool
	Results []TestResult
}

Jump to

Keyboard shortcuts

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