script

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Locator   *Locator
	TestSuite *engine.TestSuite
	Error     error
}

type Loader

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

func NewLoader

func NewLoader(opts LoaderOptions) (l *Loader, err error)

func (*Loader) Load added in v1.0.6

func (l *Loader) Load() map[string]*Descriptor

func (*Loader) LoadFile

func (l *Loader) LoadFile(locator *Locator) *Descriptor

func (*Loader) LoadFiles

func (l *Loader) LoadFiles(locators []*Locator) (descriptors map[string]*Descriptor)

func (*Loader) LoadFrom added in v1.0.6

func (l *Loader) LoadFrom(sourceDirs []string) map[string]*Descriptor

func (*Loader) ReadDir

func (l *Loader) ReadDir(sourceDir string, ext string) ([]*Locator, error)

func (*Loader) ReadDirs

func (l *Loader) ReadDirs(sourceDirs []string, ext string) (locators []*Locator, err error)

type LoaderOptions

type LoaderOptions interface {
	GetTestDirs() []string
}

type Locator

type Locator struct {
	AbsolutePath string
	RelativePath string
	Home         string
	Path         string
}

type Selector added in v1.0.6

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

func NewSelector added in v1.0.6

func NewSelector(opts SelectorOptions) (ref *Selector, err error)

func (*Selector) GetTestCases added in v1.0.6

func (r *Selector) GetTestCases(descriptors map[string]*Descriptor) []*engine.TestCase

func (*Selector) GetTestNameFilter added in v1.0.6

func (r *Selector) GetTestNameFilter() string

func (*Selector) IsMatched added in v1.0.6

func (r *Selector) IsMatched(testName string) bool

func (*Selector) TypeOfTestNameFilter added in v1.0.6

func (r *Selector) TypeOfTestNameFilter() string

type SelectorOptions added in v1.0.6

type SelectorOptions interface {
	GetTestName() string
}

type Source added in v1.0.6

type Source interface {
	GetTestDirs() []string
	GetInclFiles() []string
	GetExclFiles() []string
	GetTestName() string
	GetConditionalTags() []string
}

type SourceBuffer added in v1.0.6

type SourceBuffer struct {
	TestDirs  []string
	InclFiles []string
	ExclFiles []string
	TestName  string
	Tags      []string
}

func NewSource added in v1.0.6

func NewSource(opts Source) (ref *SourceBuffer, err error)

func (*SourceBuffer) GetConditionalTags added in v1.0.6

func (a *SourceBuffer) GetConditionalTags() []string

func (*SourceBuffer) GetExclFiles added in v1.0.6

func (a *SourceBuffer) GetExclFiles() []string

func (*SourceBuffer) GetInclFiles added in v1.0.6

func (a *SourceBuffer) GetInclFiles() []string

func (*SourceBuffer) GetTestDirs added in v1.0.6

func (a *SourceBuffer) GetTestDirs() []string

func (*SourceBuffer) GetTestName added in v1.0.6

func (a *SourceBuffer) GetTestName() string

Jump to

Keyboard shortcuts

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