Versions in this module Expand all Collapse all v0 v0.3.1 Aug 4, 2018 v0.3.0 May 5, 2018 Changes in this version + func FormatDurationAsSeconds(d time.Duration, precision int) string + func PrintSummary(out io.Writer, execution *Execution, opts Summary) error + type Action string + const ActionBench + const ActionCont + const ActionFail + const ActionOutput + const ActionPass + const ActionPause + const ActionRun + const ActionSkip + type EventFormatter func(event TestEvent, output *Execution) (string, error) + func NewEventFormatter(format string) EventFormatter + type EventHandler interface + Err func(text string) error + Event func(event TestEvent, execution *Execution) error + type Execution struct + func NewExecution() *Execution + func ScanTestOutput(config ScanConfig) (*Execution, error) + func (e *Execution) Elapsed() time.Duration + func (e *Execution) Errors() []string + func (e *Execution) Failed() []TestCase + func (e *Execution) Output(pkg, test string) string + func (e *Execution) OutputLines(pkg, test string) []string + func (e *Execution) Package(name string) *Package + func (e *Execution) Packages() []string + func (e *Execution) Skipped() []TestCase + func (e *Execution) Total() int + type Package struct + Failed []TestCase + Passed []TestCase + Skipped []TestCase + Total int + func (p Package) Elapsed() time.Duration + func (p Package) Output(test string) string + func (p Package) Result() Action + func (p Package) TestCases() []TestCase + func (p Package) TestMainFailed() bool + type ScanConfig struct + Handler EventHandler + Stderr io.Reader + Stdout io.Reader + type Summary int + const SummarizeAll + const SummarizeErrors + const SummarizeFailed + const SummarizeNone + const SummarizeSkipped + type TestCase struct + Elapsed time.Duration + Package string + Test string + type TestEvent struct + Action Action + Elapsed float64 + Output string + Package string + Test string + Time time.Time + func (e TestEvent) Bytes() []byte + func (e TestEvent) ElapsedFormatted() string + func (e TestEvent) PackageEvent() bool