Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaximumExperimentCall is the max number of times a experiment // can be called. This exists to prevent infinite loops on cyclic // dependencies MaximumExperimentCall = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Columns []string Values [][]interface{} }
Data stores values to be used as parameters during tests execution. It stores values in a matrix with defined number of rows and columns.
type Executor ¶
type Executor struct { Dir string Verbose bool Output string Experiments map[string]*Experiment Context context.Context Stdin io.Reader Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
Executor executes a Expfile.
func (*Executor) FillNames ¶
func (e *Executor) FillNames()
FillNames fill some objects with their names for better logging.
func (*Executor) ParseExpFile ¶
ParseExpFile loads the experiment file defining various experiments.
func (*Executor) PrintExperimentsHelp ¶
func (e *Executor) PrintExperimentsHelp()
PrintExperimentsHelp prints help os experiments that have a description
type Experiment ¶
type Experiment struct { Experiment string Desc string Data Data Collect map[string]*Collect Phases []*Phase Result []map[string]interface{} Iteration int Vars map[string]interface{} }
Experiment stores various values to configure an experiment where commands are called, and metrics are collected through various phases of execution.
Click to show internal directories.
Click to hide internal directories.