Documentation ¶
Index ¶
Constants ¶
const DataFile = "data.gob"
DataFile is the fixed name of the gob-encoded data file containing all the results.
const Version = "0.3.0-beta"
Version represents the Antler version.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChartsFCT ¶
type ChartsFCT struct { // To lists the names of files to execute the template to. A file of "-" // emits to stdout. To []string // Series matches Flows to series. Series []FlowSeries // Options is an arbitrary structure of Charts options, with defaults // defined in config.cue. // https://developers.google.com/chart/interactive/docs/gallery/scatterchart#configuration-options Options map[string]interface{} }
ChartsFCT is a reporter that makes time series plots using Google Charts.
type ChartsTimeSeries ¶
type ChartsTimeSeries struct { // FlowLabel sets custom labels for Flows. FlowLabel map[node.Flow]string // To lists the names of files to execute the template to. A file of "-" // emits to stdout. To []string // Options is an arbitrary structure of Charts options, with defaults // defined in config.cue. // https://developers.google.com/chart/interactive/docs/gallery/linechart#configuration-options Options map[string]interface{} }
ChartsTimeSeries is a reporter that makes time series plots using Google Charts.
type Command ¶
type Command interface {
// contains filtered or unexported methods
}
A Command is an Antler command.
type Config ¶
type Config struct { // Run is the top-level TestRun instance. Run TestRun }
Config is the Antler configuration, loaded from CUE.
type EmitLog ¶
type EmitLog struct { // To lists the destinations to send output to. "-" sends output to stdout, // and everything else sends output to the named file. If To is empty, // output is emitted to stdout. To []string }
EmitLog is a reporter that emits LogEntry's to files and/or stdout.
type ExecuteTemplate ¶
type ExecuteTemplate struct { // Name is the name of the template. Name string // From is the names of files to parse the template from // (template.ParseFiles). From []string // Text is the body of the template, to be parsed by Template.Parse. Text string // To is the name of a file to execute the template to, or "-" for stdout. To string }
ExecuteTemplate is a reporter that executes a Go template and saves the results to a file.
type FlowSeries ¶
FlowSeries groups flows into series by matching the Flow ID with a Regex.
func (*FlowSeries) Compile ¶
func (s *FlowSeries) Compile() (err error)
Compile compiles Pattern to a Regexp.
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report represents the report configuration.
type RunCommand ¶
type RunCommand struct { // Control is used to send node control signals. Control node.Control // Force re-runs the test and overwrites any existing data. Force bool }
RunCommand runs tests and reports.
type Test ¶
type Test struct { // OutPath is the base path for test output files, relative to the output // directory. Paths ending in '/' are a directory, and '/' is appended // automatically if the path is a directory. The default is "./". OutPath string // Run is the top-level Run instance. node.Run }
Test is an Antler test.
type TestRun ¶
type TestRun struct { // Test is the Test to run (non-nil on leaf TestRun's). Test *Test // Report lists Reports to be run on this TestRun and any below it in the // TestRun tree. Report reports // Serial lists TestRun's to be executed sequentially. Serial Serial // Parallel lists TestRun's to be executed concurrently. Parallel Parallel }
TestRun contains the information needed to orchestrate the execution of Tests and Reports. A TestRun may have a Test, or nested TestRun's listed in the Serial or Parallel fields, which are executed sequentially or concurrently, respectively. TestRun's may thus be arranged in a tree to coordinate the serial and parallel execution of Tests.