Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionTelemtry ¶
type NabazOutput ¶
type NabazOutput struct { IsThinking bool IsRunningTests bool IsFirstRun bool Err string FailedTests []FailedTest }
type NabazRun ¶
type NabazRun struct { RunID int64 `json:"result_id"` CommitID string `json:"commit_id"` TestsRan []TestRun `json:"tests_ran"` TestsSkipped []SkippedTest `json:"tests_skipped"` RunDuration float64 `json:"run_duration"` LongestDuration float64 `json:"longest_duration"` }
NabazRun is the result of a run with nabaz.
func (*NabazRun) FailedTests ¶
FailedTests returns the tests that failed in this Nabaz run.
func (*NabazRun) GetTestRun ¶
GetTestRun returns the test run info for the given test name.
func (*NabazRun) PreviousTestRun ¶
func (r *NabazRun) PreviousTestRun(testName string) *SkippedTest
PreviousTestRun returns the previous test run outcome of a test that wasn't run this time around.
type OutputState ¶
type OutputState struct { PreviousTestsFailedOutput string FailedTests []FailedTest }
func (*OutputState) AddFailedTest ¶
func (o *OutputState) AddFailedTest(failedTest FailedTest)
func (*OutputState) FailedTestIndex ¶
func (o *OutputState) FailedTestIndex(failedTest string) (test *FailedTest, index int)
func (*OutputState) RemoveRottonTest ¶
func (o *OutputState) RemoveRottonTest(index int)
func (*OutputState) UpdateFailedTestError ¶
func (o *OutputState) UpdateFailedTestError(index int, newError string)
type ResultTelemetry ¶
type ResultTelemetry struct { HashedId string `json:"hashed_id"` Os string `json:"os"` Arch string `json:"arch"` RunDuration float64 `json:"run_duration"` LongestDuration float64 `json:"longest_duration"` TestsSkipped int `json:"skipped_tests"` TestsRan int `json:"ran_tests"` TestsFailed int `json:"failed_tests"` }
type SkippedTest ¶
Click to show internal directories.
Click to hide internal directories.