Documentation
¶
Index ¶
- func CreateOrGetCommit(db *sqlx.DB, commit model.Commit) (*model.Commit, error)
- func CreateUpload(db *sqlx.DB, upload model.Upload) (*model.Upload, error)
- func GetTestName(db *sqlx.DB, testID int) (string, error)
- func InsertTests(db *sqlx.DB, tests []model.TestResult, upload model.Upload) error
- func New(path string) *sqlx.DB
- func UpdateFlakyTests(db *sqlx.DB, commitID int) error
- type FlakyTest
- type TestFailure
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrGetCommit ¶
func InsertTests ¶
Types ¶
type FlakyTest ¶
type TestFailure ¶ added in v0.0.7
type TestFailure struct {
UploadID int `db:"upload_id"`
Date time.Time `db:"last_fail"`
CommitSHA string `db:"commit_sha"`
URL *string `db:"url"`
}
func GetFailures ¶ added in v0.0.7
func GetFailures(db *sqlx.DB, testID int) ([]TestFailure, error)
type TestResult ¶ added in v0.0.8
type TestResult struct {
UploadID int `db:"upload_id"`
TestID int `db:"test_id"`
Name string `db:"test_name"`
CommitSHA string `db:"commit_sha"`
URL *string `db:"url"`
Success bool `db:"success"`
Output *string `db:"test_output"`
Date string `db:"time"`
}
func GetTestResult ¶ added in v0.0.8
func GetTestResult(db *sqlx.DB, testID, uploadID int) (TestResult, error)
Click to show internal directories.
Click to hide internal directories.