Versions in this module Expand all Collapse all v1 v1.8.1 Jun 28, 2023 v1.8.0 Apr 7, 2023 v1.7.2 Oct 28, 2021 v1.7.1 Oct 28, 2021 v1.7.0 Oct 26, 2021 v1.6.7 Oct 21, 2021 v1.6.6 Oct 8, 2021 v1.6.5 Oct 8, 2021 v1.6.4 Jul 31, 2019 v1.6.3 Jun 2, 2017 v1.6.2 May 3, 2016 v1.6.1 Feb 26, 2016 Changes in this version + const CloseJson + const OpenJson + func NewConsole() io.Writer + func NewDotReporter(out *Printer) *dot + func NewGoTestReporter() *gotestReporter + func NewProblemReporter(out *Printer) *problem + func NewReporters(collection ...Reporter) *reporters + func NewSilentProblemReporter(out *Printer) *problem + func NewStatisticsReporter(out *Printer) *statistics + func NewStoryReporter(out *Printer) *story + func PrintConsoleStatistics() + func QuietMode() + func SuppressConsoleStatistics() + type AssertionResult struct + Actual string + Error interface{} + Expected string + Failure string + File string + Line int + Skipped bool + StackTrace string + func NewErrorReport(err interface{}) *AssertionResult + func NewFailureReport(failure string) *AssertionResult + func NewSkipReport() *AssertionResult + func NewSuccessReport() *AssertionResult + type FailureView struct + Actual string + Expected string + Message string + type JsonReporter struct + func NewJsonReporter(out *Printer) *JsonReporter + func (self *JsonReporter) BeginStory(story *StoryReport) + func (self *JsonReporter) EndStory() + func (self *JsonReporter) Enter(scope *ScopeReport) + func (self *JsonReporter) Exit() + func (self *JsonReporter) Report(report *AssertionResult) + func (self *JsonReporter) Write(content []byte) (written int, err error) + type Printer struct + func NewPrinter(out io.Writer) *Printer + func (self *Printer) Dedent() + func (self *Printer) Indent() + func (self *Printer) Insert(text string) + func (self *Printer) Print(message string, values ...interface{}) + func (self *Printer) Println(message string, values ...interface{}) + type Reporter interface + BeginStory func(story *StoryReport) + EndStory func() + Enter func(scope *ScopeReport) + Exit func() + Report func(r *AssertionResult) + func BuildDotReporter() Reporter + func BuildJsonReporter() Reporter + func BuildSilentReporter() Reporter + func BuildStoryReporter() Reporter + type ScopeReport struct + File string + Line int + Title string + func NewScopeReport(title string) *ScopeReport + type ScopeResult struct + Assertions []*AssertionResult + Depth int + File string + Line int + Output string + Title string + type StoryReport struct + File string + Line int + Name string + Test T + func NewStoryReport(test T) *StoryReport + type T interface + Fail func()