ginkgo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2014 License: MIT Imports: 11 Imported by: 0

README

Build Status

Jump straight to the docs to learn more.

Feature List

Gomega: Ginkgo's Preferred Matcher Library

Learn more about Gomega here

License

Ginkgo is MIT-Licensed

Documentation

Index

Constants

View Source
const GINKGO_VERSION = config.VERSION

Variables

This section is empty.

Functions

func AfterEach

func AfterEach(body interface{}, timeout ...float64) bool

func BeforeEach

func BeforeEach(body interface{}, timeout ...float64) bool

func Context

func Context(text string, body func()) bool

func Describe

func Describe(text string, body func()) bool

func FContext

func FContext(text string, body func()) bool

func FDescribe

func FDescribe(text string, body func()) bool

func FIt

func FIt(text string, body interface{}, timeout ...float64) bool

func FMeasure

func FMeasure(text string, body func(Benchmarker), samples int) bool

func Fail

func Fail(message string, callerSkip ...int)

func It

func It(text string, body interface{}, timeout ...float64) bool

func JustBeforeEach

func JustBeforeEach(body interface{}, timeout ...float64) bool

func Measure

func Measure(text string, body func(Benchmarker), samples int) bool

func PContext

func PContext(text string, body func()) bool

func PDescribe

func PDescribe(text string, body func()) bool

func PIt

func PIt(text string, body interface{}, timeout ...float64) bool

func PMeasure

func PMeasure(text string, body func(Benchmarker), samples int) bool

func RunSpecs

func RunSpecs(t *testing.T, description string)

func RunSpecsWithCustomReporters

func RunSpecsWithCustomReporters(t *testing.T, description string, specReporters []Reporter)

func RunSpecsWithDefaultAndCustomReporters

func RunSpecsWithDefaultAndCustomReporters(t *testing.T, description string, specReporters []Reporter)

func XContext

func XContext(text string, body func()) bool

func XDescribe

func XDescribe(text string, body func()) bool

func XIt

func XIt(text string, body interface{}, timeout ...float64) bool

func XMeasure

func XMeasure(text string, body func(Benchmarker), samples int) bool

Types

type Benchmarker

type Benchmarker interface {
	Time(name string, body func(), info ...interface{}) (elapsedTime time.Duration)
	RecordValue(name string, value float64, info ...interface{})
}

type Done

type Done chan<- interface{}

type Reporter

type Reporter interface {
	SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)
	ExampleWillRun(exampleSummary *types.ExampleSummary)
	ExampleDidComplete(exampleSummary *types.ExampleSummary)
	SpecSuiteDidEnd(summary *types.SuiteSummary)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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