Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
FileLoader loads the Mappings from Suite and Suite proto files.
func NewCustomFileLoader ¶
func NewCustomFileLoader(suiteSetsFile, suitesFile string) *FileLoader
NewCustomFileLoader creates a FileLoader that will load the mappings from the given files.
func NewFileLoader ¶
func NewFileLoader() *FileLoader
NewFileLoader creates a FileLoader that will load the mappings from the default file locations.
func (*FileLoader) Load ¶
func (f *FileLoader) Load() (Mappings, error)
Load reads the Suite/SuiteSet mappings from the file locations specified in the FileLoader.
type InMemoryLoader ¶
type InMemoryLoader struct {
// contains filtered or unexported fields
}
InMemoryLoader is an implementation of MappingsLoader that is useful for mocking a MappingsLoader for testing purposes.
func NewInMemoryLoader ¶
func NewInMemoryLoader(rawSuiteSets *api.SuiteSetList, rawSuites *api.SuiteList) *InMemoryLoader
NewInMemoryLoader creates an InMemoryLoader that loads the given mappings.
func (*InMemoryLoader) Load ¶
func (i *InMemoryLoader) Load() (Mappings, error)
Load returns the Mappings defined in the InMemoryLoader.
type Mappings ¶
type Mappings map[string]centralizedSuite
Mappings is the mappings of all the SuiteSets to their respective Suites/SuiteSets and all the Suites to their respective tests.
type MappingsLoader ¶
MappingsLoader represents an object that can load Suite/SuiteSetMappings.