watch

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 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 Delta

type Delta struct {
	ModifiedPackages []string

	NewSuites     []*Suite
	RemovedSuites []*Suite
	// contains filtered or unexported fields
}

func (Delta) ModifiedSuites

func (d Delta) ModifiedSuites() []*Suite

type DeltaTracker

type DeltaTracker struct {
	// contains filtered or unexported fields
}

func NewDeltaTracker

func NewDeltaTracker(maxDepth int, watchRegExp *regexp.Regexp) *DeltaTracker

func (*DeltaTracker) Delta

func (d *DeltaTracker) Delta(suites []testsuite.TestSuite) (delta Delta, errors SuiteErrors)

func (*DeltaTracker) WillRun

func (d *DeltaTracker) WillRun(suite testsuite.TestSuite) error

type Dependencies

type Dependencies struct {
	// contains filtered or unexported fields
}

func NewDependencies

func NewDependencies(path string, maxDepth int) (Dependencies, error)

func (Dependencies) Dependencies

func (d Dependencies) Dependencies() map[string]int

type DescendingByDelta

type DescendingByDelta []*Suite

func (DescendingByDelta) Len

func (a DescendingByDelta) Len() int

func (DescendingByDelta) Less

func (a DescendingByDelta) Less(i, j int) bool

func (DescendingByDelta) Swap

func (a DescendingByDelta) Swap(i, j int)

type PackageHash

type PackageHash struct {
	CodeModifiedTime time.Time
	TestModifiedTime time.Time
	Deleted          bool
	// contains filtered or unexported fields
}

func NewPackageHash

func NewPackageHash(path string, watchRegExp *regexp.Regexp) *PackageHash

func (*PackageHash) CheckForChanges

func (p *PackageHash) CheckForChanges() bool

type PackageHashes

type PackageHashes struct {
	PackageHashes map[string]*PackageHash
	// contains filtered or unexported fields
}

func NewPackageHashes

func NewPackageHashes(watchRegExp *regexp.Regexp) *PackageHashes

func (*PackageHashes) Add

func (p *PackageHashes) Add(path string) *PackageHash

func (*PackageHashes) CheckForChanges

func (p *PackageHashes) CheckForChanges() []string

func (*PackageHashes) Get

func (p *PackageHashes) Get(path string) *PackageHash

func (*PackageHashes) StartTrackingUsage

func (p *PackageHashes) StartTrackingUsage()

func (*PackageHashes) StopTrackingUsageAndPrune

func (p *PackageHashes) StopTrackingUsageAndPrune()

type Suite

type Suite struct {
	Suite        testsuite.TestSuite
	RunTime      time.Time
	Dependencies Dependencies
	// contains filtered or unexported fields
}

func NewSuite

func NewSuite(suite testsuite.TestSuite, maxDepth int, sharedPackageHashes *PackageHashes) (*Suite, error)

func (*Suite) Delta

func (s *Suite) Delta() float64

func (*Suite) Description

func (s *Suite) Description() string

func (*Suite) MarkAsRunAndRecomputedDependencies

func (s *Suite) MarkAsRunAndRecomputedDependencies(maxDepth int) error

type SuiteErrors

type SuiteErrors map[testsuite.TestSuite]error

Jump to

Keyboard shortcuts

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