types

package
v0.0.0-...-80b24d7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomID

func GenerateRandomID() string

func PruneStack

func PruneStack(fullStackTrace string, skip int) string

Types

type CodeLocation

type CodeLocation struct {
	FileName       string
	LineNumber     int
	FullStackTrace string
}

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 ExampleMeasurement struct {
	Name string
	Info interface{}

	Results []float64

	Smallest     float64
	Largest      float64
	Average      float64
	StdDeviation float64

	SmallestLabel string
	LargestLabel  string
	AverageLabel  string
	Units         string
}

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
}

Jump to

Keyboard shortcuts

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