Documentation ¶
Index ¶
- func Average(slice []time.Duration) time.Duration
- func Deviation(slice []time.Duration) time.Duration
- func Duration(runs []Run) time.Duration
- func Durations(runs []Run) []time.Duration
- func Loads(runs []Run) []float64
- func Mean(slice []time.Duration) time.Duration
- func Total(runs []Run) time.Duration
- type DB
- type Run
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Run ¶
type Run struct { Name string // Full qualified test name Instance int // Test instance Verdict string // the test verdict (pass, fail, none, ...) Reason string // Optional reason for verdicts Begin Timestamp // When the test was started End Timestamp // When the test ended WorkingDir string // Working Directory of the test Load float64 // the system load when the test was started MaxMem int // the maximum memory used when the test ended RunnerID string `json:"runnerid"` }
A Run describes the execution of a single test case.
func FinalVerdicts ¶
FinalVerdicts folds multiple runs instances into one with a final verdict.
* A test is considered "pass", if all runs had verdict "pass". * A test is considered "unstable", if only some runs had verdict "pass" * Runs with worse or equal verdict will overwrite previous runs.
type Timestamp ¶
Timestamp is a Unix timestamp in milliseconds.
func (Timestamp) MarshalJSON ¶
MarshalJSON is used to convert the timestamp to JSON
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON is used to convert the timestamp from JSON
Click to show internal directories.
Click to hide internal directories.