stenographer

package
v0.0.0-...-650939c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT, MPL-2.0 Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewFakeStenographer

func NewFakeStenographer() *FakeStenographer

func (*FakeStenographer) AnnounceAfterSuiteFailure

func (stenographer *FakeStenographer) AnnounceAfterSuiteFailure(summary *types.SetupSummary, succinct bool, fullTrace bool)

func (*FakeStenographer) AnnounceAggregatedParallelRun

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

func (*FakeStenographer) AnnounceBeforeSuiteFailure

func (stenographer *FakeStenographer) AnnounceBeforeSuiteFailure(summary *types.SetupSummary, succinct bool, fullTrace bool)

func (*FakeStenographer) AnnounceCapturedOutput

func (stenographer *FakeStenographer) AnnounceCapturedOutput(output string)

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) AnnouncePendingSpec

func (stenographer *FakeStenographer) AnnouncePendingSpec(spec *types.SpecSummary, noisy bool)

func (*FakeStenographer) AnnounceSkippedSpec

func (stenographer *FakeStenographer) AnnounceSkippedSpec(spec *types.SpecSummary, succinct bool, fullTrace bool)

func (*FakeStenographer) AnnounceSpecFailed

func (stenographer *FakeStenographer) AnnounceSpecFailed(spec *types.SpecSummary, succinct bool, fullTrace bool)

func (*FakeStenographer) AnnounceSpecPanicked

func (stenographer *FakeStenographer) AnnounceSpecPanicked(spec *types.SpecSummary, succinct bool, fullTrace bool)

func (*FakeStenographer) AnnounceSpecRunCompletion

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

func (*FakeStenographer) AnnounceSpecTimedOut

func (stenographer *FakeStenographer) AnnounceSpecTimedOut(spec *types.SpecSummary, succinct bool, fullTrace bool)

func (*FakeStenographer) AnnounceSpecWillRun

func (stenographer *FakeStenographer) AnnounceSpecWillRun(spec *types.SpecSummary)

func (*FakeStenographer) AnnounceSuccesfulMeasurement

func (stenographer *FakeStenographer) AnnounceSuccesfulMeasurement(spec *types.SpecSummary, succinct bool)

func (*FakeStenographer) AnnounceSuccesfulSlowSpec

func (stenographer *FakeStenographer) AnnounceSuccesfulSlowSpec(spec *types.SpecSummary, succinct bool)

func (*FakeStenographer) AnnounceSuccesfulSpec

func (stenographer *FakeStenographer) AnnounceSuccesfulSpec(spec *types.SpecSummary)

func (*FakeStenographer) AnnounceSuite

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

func (*FakeStenographer) Calls

func (stenographer *FakeStenographer) Calls() []FakeStenographerCall

func (*FakeStenographer) CallsTo

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

func (*FakeStenographer) Reset

func (stenographer *FakeStenographer) Reset()

func (*FakeStenographer) SummarizeFailures

func (stenographer *FakeStenographer) SummarizeFailures(summaries []*types.SpecSummary)

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)

	AnnounceSpecWillRun(spec *types.SpecSummary)
	AnnounceBeforeSuiteFailure(summary *types.SetupSummary, succinct bool, fullTrace bool)
	AnnounceAfterSuiteFailure(summary *types.SetupSummary, succinct bool, fullTrace bool)

	AnnounceCapturedOutput(output string)

	AnnounceSuccesfulSpec(spec *types.SpecSummary)
	AnnounceSuccesfulSlowSpec(spec *types.SpecSummary, succinct bool)
	AnnounceSuccesfulMeasurement(spec *types.SpecSummary, succinct bool)

	AnnouncePendingSpec(spec *types.SpecSummary, noisy bool)
	AnnounceSkippedSpec(spec *types.SpecSummary, succinct bool, fullTrace bool)

	AnnounceSpecTimedOut(spec *types.SpecSummary, succinct bool, fullTrace bool)
	AnnounceSpecPanicked(spec *types.SpecSummary, succinct bool, fullTrace bool)
	AnnounceSpecFailed(spec *types.SpecSummary, succinct bool, fullTrace bool)

	SummarizeFailures(summaries []*types.SpecSummary)
}

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