Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomID ¶
func GenerateRandomID() string
func PruneStack ¶
Types ¶
type CodeLocation ¶
func GenerateCodeLocation ¶
func GenerateCodeLocation(skip int) CodeLocation
func (CodeLocation) String ¶
func (codeLocation CodeLocation) String() string
type ExampleComponentType ¶
type ExampleComponentType uint
const ( ExampleComponentTypeInvalid ExampleComponentType = iota ExampleComponentTypeBeforeEach ExampleComponentTypeJustBeforeEach ExampleComponentTypeAfterEach ExampleComponentTypeIt ExampleComponentTypeMeasure )
type ExampleFailure ¶
type ExampleFailure struct { Message string Location CodeLocation ForwardedPanic interface{} ComponentIndex int ComponentType ExampleComponentType ComponentCodeLocation CodeLocation }
type ExampleMeasurement ¶
type ExampleState ¶
type ExampleState uint
const ( ExampleStateInvalid ExampleState = iota ExampleStatePending ExampleStateSkipped ExampleStatePassed ExampleStateFailed ExampleStatePanicked ExampleStateTimedOut )
type ExampleSummary ¶
type ExampleSummary struct { ComponentTexts []string ComponentCodeLocations []CodeLocation State ExampleState RunTime time.Duration Failure ExampleFailure IsMeasurement bool NumberOfSamples int Measurements map[string]*ExampleMeasurement CapturedOutput string SuiteID string ExampleIndex int }
type SuiteSummary ¶
type SuiteSummary struct { SuiteDescription string SuiteSucceeded bool SuiteID string NumberOfExamplesBeforeParallelization int NumberOfTotalExamples int NumberOfExamplesThatWillBeRun int NumberOfPendingExamples int NumberOfSkippedExamples int NumberOfPassedExamples int NumberOfFailedExamples int RunTime time.Duration }
Click to show internal directories.
Click to hide internal directories.