Documentation
¶
Index ¶
- type Descriptor
- type Loader
- func (l *Loader) Load() map[string]*Descriptor
- func (l *Loader) LoadFile(locator *Locator) *Descriptor
- func (l *Loader) LoadFiles(locators []*Locator) (descriptors map[string]*Descriptor)
- func (l *Loader) LoadFrom(sourceDirs []string) map[string]*Descriptor
- func (l *Loader) ReadDir(sourceDir string, ext string) ([]*Locator, error)
- func (l *Loader) ReadDirs(sourceDirs []string, ext string) (locators []*Locator, err error)
- type LoaderOptions
- type Locator
- type Selector
- type SelectorOptions
- type Source
- type SourceBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
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)
type LoaderOptions ¶
type LoaderOptions interface {
GetTestDirs() []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 (*Selector) TypeOfTestNameFilter ¶ added in v1.0.6
type SelectorOptions ¶ added in v1.0.6
type SelectorOptions interface {
GetTestName() 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
Click to show internal directories.
Click to hide internal directories.