Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.