test_helpers

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeASuiteSummary

func BeASuiteSummary(options ...interface{}) OmegaMatcher

func BePending

func BePending() OmegaMatcher

func HaveBeenSkipped

func HaveBeenSkipped() OmegaMatcher

func HaveFailed

func HaveFailed(options ...interface{}) OmegaMatcher

func HavePanicked

func HavePanicked(options ...interface{}) OmegaMatcher

func HavePassed

func HavePassed(options ...interface{}) OmegaMatcher

func HaveRun

func HaveRun(run string) OmegaMatcher

func HaveRunWithData

func HaveRunWithData(run string, kv ...interface{}) OmegaMatcher

func HaveTracked

func HaveTracked(runs ...string) OmegaMatcher

func HaveTrackedNothing

func HaveTrackedNothing() OmegaMatcher

func LoadMarkdownHeadingAnchors

func LoadMarkdownHeadingAnchors(filename string) []string

func SetUpServerAndClient

func SetUpServerAndClient(numNodes int) (*parallel_support.Server, parallel_support.Client, map[int]chan interface{})

func StatusCodePoller

func StatusCodePoller(url string) func() int

Types

type CapturedGinkgoWriterOutput

type CapturedGinkgoWriterOutput string

type CapturedStdOutput

type CapturedStdOutput string

type FakeInterruptHandler

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

func NewFakeInterruptHandler

func NewFakeInterruptHandler() *FakeInterruptHandler

func (*FakeInterruptHandler) ClearInterruptMessage

func (handler *FakeInterruptHandler) ClearInterruptMessage()

func (*FakeInterruptHandler) EmittedInterruptMessage

func (handler *FakeInterruptHandler) EmittedInterruptMessage() string

func (*FakeInterruptHandler) Interrupt

func (handler *FakeInterruptHandler) Interrupt(cause string)

func (*FakeInterruptHandler) InterruptMessageWithStackTraces

func (handler *FakeInterruptHandler) InterruptMessageWithStackTraces() string

func (*FakeInterruptHandler) SetInterruptMessage

func (handler *FakeInterruptHandler) SetInterruptMessage(message string)

func (*FakeInterruptHandler) Status

func (handler *FakeInterruptHandler) Status() internal.InterruptStatus

func (*FakeInterruptHandler) Stop

func (handler *FakeInterruptHandler) Stop()

type FakeOutputInterceptor

type FakeOutputInterceptor struct {
	InterceptedOutput string
	// contains filtered or unexported fields
}

func NewFakeOutputInterceptor

func NewFakeOutputInterceptor() *FakeOutputInterceptor

func (*FakeOutputInterceptor) StartInterceptingOutput

func (interceptor *FakeOutputInterceptor) StartInterceptingOutput()

func (*FakeOutputInterceptor) StopInterceptingAndReturnOutput

func (interceptor *FakeOutputInterceptor) StopInterceptingAndReturnOutput() string

type FakeReporter

type FakeReporter struct {
	Begin types.Report
	Will  Reports
	Did   Reports
	End   types.Report
}

func (*FakeReporter) DidRun

func (r *FakeReporter) DidRun(report types.SpecReport)

func (*FakeReporter) SuiteDidEnd

func (r *FakeReporter) SuiteDidEnd(report types.Report)

func (*FakeReporter) SuiteWillBegin

func (r *FakeReporter) SuiteWillBegin(report types.Report)

func (*FakeReporter) WillRun

func (r *FakeReporter) WillRun(report types.SpecReport)

type NFailed

type NFailed int

type NFlaked

type NFlaked int

type NPassed

type NPassed int

type NPending

type NPending int

type NSkipped

type NSkipped int

type NSpecs

type NSpecs int

type NWillRun

type NWillRun int

type NumAttempts

type NumAttempts int

type Reports

type Reports []types.SpecReport

func (Reports) Find

func (s Reports) Find(name string) types.SpecReport

func (Reports) FindByLeafNodeType

func (s Reports) FindByLeafNodeType(nodeTypes ...types.NodeType) types.SpecReport

func (Reports) Names

func (s Reports) Names() []string

func (Reports) WithLeafNodeType

func (s Reports) WithLeafNodeType(nodeTypes ...types.NodeType) Reports

func (Reports) WithState

func (s Reports) WithState(state types.SpecState) Reports

type RunTracker

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

func NewRunTracker

func NewRunTracker() *RunTracker

func (*RunTracker) C

func (rt *RunTracker) C(text string, callback ...func()) func(args []string, additionalArgs []string)

func (*RunTracker) DataFor

func (rt *RunTracker) DataFor(text string) map[string]interface{}

func (*RunTracker) Reset

func (rt *RunTracker) Reset()

func (*RunTracker) Run

func (rt *RunTracker) Run(text string)

func (*RunTracker) RunWithData

func (rt *RunTracker) RunWithData(text string, kv ...interface{})

func (*RunTracker) T

func (rt *RunTracker) T(text string, callback ...func()) func()

func (*RunTracker) TrackedRuns

func (rt *RunTracker) TrackedRuns() []string

Jump to

Keyboard shortcuts

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