zbtest

package
v0.0.0-...-83f582a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringReader

type StringReader interface {
	io.Reader
	ReadString(byte) (string, error)
}

StringReader is satisfied by bufio.Reader

type ZBTest

type ZBTest struct {
	buildflags.TestFlagsData
	Force bool
}

ZBTest provides methods for working with cached test result files

func (*ZBTest) CacheFile

func (t *ZBTest) CacheFile(ctx zbcontext.Context, p *project.Package) (string, error)

CacheFile returns the location of the test cache file for a given package

func (*ZBTest) HaveResult

func (t *ZBTest) HaveResult(ctx zbcontext.Context, p *project.Package) (bool, error)

HaveResult checks to see if a test result is available for a given package

func (*ZBTest) ReadResult

func (t *ZBTest) ReadResult(ctx zbcontext.Context, r StringReader, p *project.Package) error

ReadResult from the StringReader and write it to the CacheFile for the given package

func (*ZBTest) ShowResult

func (t *ZBTest) ShowResult(ctx zbcontext.Context, w io.Writer, p *project.Package) (bool, error)

ShowResult reads the CacheFile for the given package and writes it to the Writer

func (*ZBTest) TestSetup

func (t *ZBTest) TestSetup(ctx zbcontext.Context) zbcontext.Context

Jump to

Keyboard shortcuts

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