Documentation ¶
Overview ¶
Package regressiontest has common utility funcs for testing the regression package.
Index ¶
- Variables
- func DeleteByCommit(t *testing.T, store regression.Store)
- func GetOldestCommit(t *testing.T, store regression.Store)
- func Range_Exact(t *testing.T, store regression.Store)
- func SetLowAndTriage(t *testing.T, store regression.Store)
- func TriageNonExistentRegression(t *testing.T, store regression.Store)
- func Write(t *testing.T, store regression.Store)
- type SubTestFunction
Constants ¶
This section is empty.
Variables ¶
var SubTests = map[string]SubTestFunction{ "SetLowAndTriage": SetLowAndTriage, "Range_Exact": Range_Exact, "TriageNonExistentRegression": TriageNonExistentRegression, "TestWrite": Write, "TestDeleteByCommit": DeleteByCommit, "TestGetOldestCommit": GetOldestCommit, }
SubTests are all the subtests we have for regression.Store.
Functions ¶
func DeleteByCommit ¶
func DeleteByCommit(t *testing.T, store regression.Store)
DeleteByCommit tests that the implementation of the regression.Store interface can delete an inserted regression
func GetOldestCommit ¶
func GetOldestCommit(t *testing.T, store regression.Store)
GetOldestCommit tests that the implementation of the regression.Store interface can get the lowest commit number
func Range_Exact ¶
func Range_Exact(t *testing.T, store regression.Store)
Range_Exact tests that Range returns values when begin=end.
func SetLowAndTriage ¶
func SetLowAndTriage(t *testing.T, store regression.Store)
SetLowAndTriage tests that the implementation of the regression.Store interface operates correctly on the happy path.
func TriageNonExistentRegression ¶
func TriageNonExistentRegression(t *testing.T, store regression.Store)
TriageNonExistentRegression tests that the implementation of the regression.Store interface fails as expected when triaging an unknown regression.
Types ¶
type SubTestFunction ¶
type SubTestFunction func(t *testing.T, store regression.Store)
SubTestFunction is a func we will call to test one aspect of an implementation of regression.Store.