stenographer

package
v0.0.0-...-aa06bc0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeStenographer

type FakeStenographer struct {
	Calls []FakeStenographerCall
}

func NewFakeStenographer

func NewFakeStenographer() *FakeStenographer

func (*FakeStenographer) AnnounceAggregatedParallelRun

func (stenographer *FakeStenographer) AnnounceAggregatedParallelRun(nodes int, succinct bool)

func (*FakeStenographer) AnnounceCapturedOutput

func (stenographer *FakeStenographer) AnnounceCapturedOutput(example *types.ExampleSummary)

func (*FakeStenographer) AnnounceExampleFailed

func (stenographer *FakeStenographer) AnnounceExampleFailed(example *types.ExampleSummary, succinct bool)

func (*FakeStenographer) AnnounceExamplePanicked

func (stenographer *FakeStenographer) AnnounceExamplePanicked(example *types.ExampleSummary, succinct bool)

func (*FakeStenographer) AnnounceExampleTimedOut

func (stenographer *FakeStenographer) AnnounceExampleTimedOut(example *types.ExampleSummary, succinct bool)

func (*FakeStenographer) AnnounceExampleWillRun

func (stenographer *FakeStenographer) AnnounceExampleWillRun(example *types.ExampleSummary)

func (*FakeStenographer) AnnounceNumberOfSpecs

func (stenographer *FakeStenographer) AnnounceNumberOfSpecs(specsToRun int, total int, succinct bool)

func (*FakeStenographer) AnnounceParallelRun

func (stenographer *FakeStenographer) AnnounceParallelRun(node int, nodes int, specsToRun int, totalSpecs int, succinct bool)

func (*FakeStenographer) AnnouncePendingExample

func (stenographer *FakeStenographer) AnnouncePendingExample(example *types.ExampleSummary, noisy bool)

func (*FakeStenographer) AnnounceSkippedExample

func (stenographer *FakeStenographer) AnnounceSkippedExample(example *types.ExampleSummary)

func (*FakeStenographer) AnnounceSpecRunCompletion

func (stenographer *FakeStenographer) AnnounceSpecRunCompletion(summary *types.SuiteSummary, succinct bool)

func (*FakeStenographer) AnnounceSuccesfulExample

func (stenographer *FakeStenographer) AnnounceSuccesfulExample(example *types.ExampleSummary)

func (*FakeStenographer) AnnounceSuccesfulMeasurement

func (stenographer *FakeStenographer) AnnounceSuccesfulMeasurement(example *types.ExampleSummary, succinct bool)

func (*FakeStenographer) AnnounceSuccesfulSlowExample

func (stenographer *FakeStenographer) AnnounceSuccesfulSlowExample(example *types.ExampleSummary, succinct bool)

func (*FakeStenographer) AnnounceSuite

func (stenographer *FakeStenographer) AnnounceSuite(description string, randomSeed int64, randomizingAll bool, succinct bool)

func (*FakeStenographer) CallsTo

func (stenographer *FakeStenographer) CallsTo(method string) []FakeStenographerCall

func (*FakeStenographer) Reset

func (stenographer *FakeStenographer) Reset()

type FakeStenographerCall

type FakeStenographerCall struct {
	Method string
	Args   []interface{}
}

func NewFakeStenographerCall

func NewFakeStenographerCall(method string, args ...interface{}) FakeStenographerCall

type Stenographer

type Stenographer interface {
	AnnounceSuite(description string, randomSeed int64, randomizingAll bool, succinct bool)
	AnnounceAggregatedParallelRun(nodes int, succinct bool)
	AnnounceParallelRun(node int, nodes int, specsToRun int, totalSpecs int, succinct bool)
	AnnounceNumberOfSpecs(specsToRun int, total int, succinct bool)
	AnnounceSpecRunCompletion(summary *types.SuiteSummary, succinct bool)

	AnnounceExampleWillRun(example *types.ExampleSummary)

	AnnounceCapturedOutput(example *types.ExampleSummary)

	AnnounceSuccesfulExample(example *types.ExampleSummary)
	AnnounceSuccesfulSlowExample(example *types.ExampleSummary, succinct bool)
	AnnounceSuccesfulMeasurement(example *types.ExampleSummary, succinct bool)

	AnnouncePendingExample(example *types.ExampleSummary, noisy bool)
	AnnounceSkippedExample(example *types.ExampleSummary)

	AnnounceExampleTimedOut(example *types.ExampleSummary, succinct bool)
	AnnounceExamplePanicked(example *types.ExampleSummary, succinct bool)
	AnnounceExampleFailed(example *types.ExampleSummary, succinct bool)
}

func New

func New(color bool) Stenographer

Jump to

Keyboard shortcuts

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