report

package
v0.0.0-...-0579a83 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReporter

type FileReporter struct{}

FileReporter is a type implementing io.Writer that writes the data passed to its Writer method in a file

func (*FileReporter) Write

func (fr *FileReporter) Write(data []byte) (n int, err error)

type ParserReporter

type ParserReporter struct {
	Next io.Writer
}

ParserReporter is a type implementing io.Writer that parses the input data and sends the results to the Next reporter

The input data is expected to be of the form of the textual output of gocheck with verbose mode enabled, and the output will be of the form defined by the subunit format before the binary encoding. There are constants reflecting the expected patterns for this texts. Additionally, it doesn't take into account the SKIPs done from a SetUpTest method, due to the nature of the snappy test suite we are using those for resuming execution after a reboot and they shouldn't be reflected as skipped tests in the final output. For the same reason we use a special marker for the test's announce.

func (*ParserReporter) Write

func (fr *ParserReporter) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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