controllers

package
v0.0.0-...-17b3880 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2013 License: MIT Imports: 7 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
	ErrorSummary string
}

type TestRunner

type TestRunner struct {
	*revel.Controller
}

func (TestRunner) Index

func (c TestRunner) Index() revel.Result

func (TestRunner) List

func (c TestRunner) List() revel.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) revel.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