test

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outcome

type Outcome interface {
	io.Reader
	ConsoleOutput() []byte
	CoverFile() osadapter.File
}

Outcome is a test run outcome, bundleing a pointer to a coverage file as well the console output.

type Test

type Test interface {
	Run() (Outcome, error)
}

Test represents one `go test` run with exactly one package

func NewTest

func NewTest(goBin, pkg string, osa osadapter.OS) Test

type TestFailure added in v0.1.1

type TestFailure struct {
	Pkg      string
	Output   []byte
	Original error
	// contains filtered or unexported fields
}

func IsTestFailure added in v0.1.1

func IsTestFailure(e error) (*TestFailure, bool)

func (*TestFailure) Error added in v0.1.1

func (e *TestFailure) Error() string

Jump to

Keyboard shortcuts

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