centralizedsuite

package
v0.0.0-...-0342304 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

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.

func (Mappings) TestsIn

func (m Mappings) TestsIn(centralizedSuiteID string) (map[string]struct{}, error)

TestsIn returns a set of all the tests that are in the given centralized suite; returns a errCentralizedSuiteNotFound if the given centralized suite is not in the mappings.

type MappingsLoader

type MappingsLoader interface {
	Load() (Mappings, error)
}

MappingsLoader represents an object that can load Suite/SuiteSetMappings.

Jump to

Keyboard shortcuts

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