Documentation ¶
Overview ¶
Package analyser represents the stage of the tester that takes a plan, performs various statistics on it, and outputs reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrBadStatus = errors.New("at least one subject reported a bad status")
ErrBadStatus is the error reported when the analyser is asked to error on a bad status, and one arrives.
var ErrObserverNil = errors.New("observer nil")
ErrObserverNil occurs if we pass a nil Observer to ObserveWith.
Functions ¶
func OnAnalysis ¶
OnAnalysis sends OnAnalysis to every instance observer in obs.
Types ¶
type Analyser ¶
type Analyser struct {
// contains filtered or unexported fields
}
Analyser represents the state of the plan analyser stage.
type Observer ¶
type Observer interface { // OnAnalysis lets the observer know that the current plan has been analysed and the results are in a. OnAnalysis(a analysis.Analysis) }
Observer represents the observer interface for the analyser stage.
type Option ¶
Option is the type of options to the analyser stage constructor.
func ErrorOnBadStatus ¶
ErrorOnBadStatus makes the analyser fail if it observed any 'bad' statuses, if set to true.
func ObserveSaveWith ¶
ObserveSaveWith adds each observer in obs to the observer set for saving.
func ObserveWith ¶
ObserveWith adds each observer in obs to the observer set for analysing.
func SaveToPathset ¶
SaveToPathset makes this analyser stage save to the given pathset. This can be nil, in which case saving is disabled.
Directories ¶
Path | Synopsis |
---|---|
Package csvdump handles outputting of analysis data as CSVs.
|
Package csvdump handles outputting of analysis data as CSVs. |
Package pretty provides a pretty-printer for analyses.
|
Package pretty provides a pretty-printer for analyses. |
Package saver contains the part of the analyser that uses the analyser to save failing tests.
|
Package saver contains the part of the analyser that uses the analyser to save failing tests. |