Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Time time.Time Action string Package string Test string Elapsed float64 // seconds Output string }
Event represents a JSON event emitted by `go test -json`.
type JSONEventReader ¶
type JSONEventReader struct {
// contains filtered or unexported fields
}
JSONEventReader reads JSON events from an io.Reader object.
func NewJSONEventReader ¶
func NewJSONEventReader(r io.Reader) *JSONEventReader
NewJSONEventReader returns a JSONEventReader to read the data in JSON events from r.
type LimitedLineReader ¶
type LimitedLineReader struct {
// contains filtered or unexported fields
}
LimitedLineReader reads lines from an io.Reader object with a configurable line size limit. Lines exceeding the limit will be truncated, but read completely from the underlying io.Reader.
func NewLimitedLineReader ¶
func NewLimitedLineReader(r io.Reader, limit int) *LimitedLineReader
NewLimitedLineReader returns a LimitedLineReader to read lines from r with a maximum line size of limit.
type LineReader ¶
LineReader is an interface to read lines with optional Metadata.
Click to show internal directories.
Click to hide internal directories.