Documentation
¶
Overview ¶
Package suite defines interfaces for abstracting the fields of a Suite or SuiteSet.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CentralizedSuite ¶
type CentralizedSuite interface { // Metadata returns the metadata for a Suite or SuiteSet. Metadata() *Metadata // ID returns the id of the Suite or SuiteSet, if the struct does not // hold a Suite or SuiteSet it returns an empty string. ID() string // Tests returns the tests for a Suite or empty list if the interface contains // a SuiteSet. Tests() []string // Suites returns the child suites for a SuiteSet or empty list if the interface // contains a Suite. Suites() []string // SuiteSets returns the child suitesets for a SuiteSet or empty listif the interface // contains a Suite. SuiteSets() []string // Closures takes in map of all known Suites/SuiteSets and generates closure // relationships to be uploaded to database for efficient queries, only generates // closures for the CentralizedSuite not for all Suites/SuiteSets in suites arg. Closures(suites map[string]CentralizedSuite) ([]*SuiteClosure, error) }
CentralizedSuite is an interface that allows generic access to the fields of a Suite or SuiteSet.
type Suite ¶
type Suite struct {
// contains filtered or unexported fields
}
Suite implements the CentralizedSuite interface for a Suite.
func (*Suite) Closures ¶
func (s *Suite) Closures(suites map[string]CentralizedSuite) ([]*SuiteClosure, error)
func (*Suite) ID ¶
ID returns the id of the Suite, if the struct does not hold a Suite it returns an empty string.
type SuiteClosure ¶
SuiteClosure holds the information for a row in the closure table this is used to publish SuiteSet relationships and allow quick easy lookup.
type SuiteSet ¶
type SuiteSet struct {
// contains filtered or unexported fields
}
SuiteSet implements the CentralizedSuite interface for a SuiteSet.
func NewSuiteSet ¶
NewSuiteSet constructs a new SuiteSet from a Protobuf.
func (*SuiteSet) Closures ¶
func (s *SuiteSet) Closures(suites map[string]CentralizedSuite) ([]*SuiteClosure, error)
Closures takes in map of all known Suites/SuiteSets and generates closure relationships to be uploaded to database for efficient queries, only generates closures for the CentralizedSuite not for all Suites/SuiteSets in suites arg.
func (*SuiteSet) ID ¶
ID returns the id of the Suite, if the struct does not hold a Suite it returns an empty string.