execution

package
v0.0.0-...-37f486c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2013 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

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