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 Session
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Run ¶
type Run struct { Name string `json:"name"` // Full qualified test name Instance int `json:"instance,omitempty"` // Test instance Verdict string `json:"verdict,omitempty"` // the test verdict (pass, fail, none, ...) Reason string `json:"reason,omitempty"` // Optional reason for verdicts Begin Timestamp `json:"begin"` // When the test was started End Timestamp `json:"end"` // When the test ended WorkingDir string `json:"working_dir,omitempty"` // Working Directory of the test Load float64 `json:"load,omitempty"` // the system load when the test was started MaxMem int `json:"max_mem,omitempty"` // the maximum memory used when the test ended RunnerID string `json:"runner_id,omitempty"` ExpectedVerdict string `json:"expected_verdict,omitempty"` }
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.