Documentation
¶
Overview ¶
Package generator contains templates and generating logic for suites
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body []string
Body represents a body of the method
func (Body) BashString ¶
BashString returns the body as a bash script for the suite
type Dependencies ¶
type Dependencies []Dependency
Dependencies represent an array of Dependency
func (Dependencies) FieldsString ¶
func (d Dependencies) FieldsString() string
FieldsString returns a string that contains a declaration of suite dependencies as fields
func (Dependencies) SetupString ¶
func (d Dependencies) SetupString() string
SetupString returns a string that contains a declaration of suite dependencies as part of setup function
func (Dependencies) String ¶
func (d Dependencies) String() string
String returns a string that contains a declaration of suite dependencies as part of import
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator can generate suites from the slice of linker.LinedExample
type Suite ¶
type Suite struct { Dir string Location string Dependency Cleanup Body Run Body Tests []*Test Children []*Suite Parents []*Suite Deps Dependencies DepsToSetup Dependencies }
Suite represents a template for generating a testify suite.Suite
func (*Suite) BashString ¶
BashString generates bash script for the suite
type Test ¶
Test is a template for a test for a suite
func (*Test) BashString ¶
BashString generates a bash script for the test