stenographer

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 6 Imported by: 1,385

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, 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) AnnounceSuccessfulMeasurement added in v1.12.1

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

func (*FakeStenographer) AnnounceSuccessfulSlowSpec added in v1.12.1

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

func (*FakeStenographer) AnnounceSuccessfulSpec added in v1.12.1

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

func (*FakeStenographer) AnnounceSuite

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

func (*FakeStenographer) AnnounceTotalNumberOfSpecs added in v1.3.0

func (stenographer *FakeStenographer) AnnounceTotalNumberOfSpecs(total int, 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, succinct bool)
	AnnounceTotalNumberOfSpecs(total 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)

	AnnounceSuccessfulSpec(spec *types.SpecSummary)
	AnnounceSuccessfulSlowSpec(spec *types.SpecSummary, succinct bool)
	AnnounceSuccessfulMeasurement(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, enableFlakes bool, writer io.Writer) Stenographer

Directories

Path Synopsis
support
go-isatty
Package isatty implements interface to isatty
Package isatty implements interface to isatty

Jump to

Keyboard shortcuts

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