execution

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package execution contains internal functionality for executing specifications in an isolated fashion as well as calling reporting hooks at important points in the process. Although this package has exported names is not intended for public consumption. See the examples package for how to use this project.

Index

Constants

View Source
const ExtraGoTest = `Only the top-level call to Convey(...) needs a reference to the *testing.T.`
View Source
const MissingGoTest = `` /* 182-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewNilReporter

func NewNilReporter() *nilReporter

func NewRunner

func NewRunner() *runner

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

func NewAction

func NewAction(action func()) *Action

func NewSkippedAction

func NewSkippedAction(action func()) *Action

func (*Action) Invoke

func (self *Action) Invoke()

type Registration

type Registration struct {
	Situation string
	Action    *Action
	Test      gotest.T
	File      string
	Line      int
}

func NewRegistration

func NewRegistration(situation string, action *Action, test gotest.T) *Registration

func (*Registration) IsTopLevel added in v1.5.0

func (self *Registration) IsTopLevel() bool

type Runner

type Runner interface {
	Begin(entry *Registration)
	Register(entry *Registration)
	RegisterReset(action *Action)
	UpgradeReporter(out reporting.Reporter)
	Run()
}

Jump to

Keyboard shortcuts

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