console

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Report

func Report(ts *mad.SpecResult)

Report pretty prints the spec results to stdout.

Types

type ResponseHandler

type ResponseHandler struct {
	Passed      int               `json:"passed"`
	Failedailed int               `json:"failed"`
	Verbose     bool              `json:"-"`
	Duration    time.Duration     `json:"duration"`
	JSONFile    string            `json:"-"`
	Results     []*mad.SpecResult `json:"results"`
}

ResponseHandler implements mad.respHandler interface. This handles pretty printing spec results to stdout.

func New

func New(verbose bool) *ResponseHandler

func NewJSON

func NewJSON(file string) *ResponseHandler

func (*ResponseHandler) Done

func (r *ResponseHandler) Done() error

Done prints the stats to stdout.

func (*ResponseHandler) Handle

func (r *ResponseHandler) Handle(ts *mad.SpecResult)

Handle tracks the stats about the spec result and pretty prints the results to stdout.

Jump to

Keyboard shortcuts

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