Documentation ¶
Overview ¶
Package regressiontest has common utility funcs for testing the regression package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SubTests = map[string]SubTestFunction{ "SetLowAndTriage": SetLowAndTriage, "Range_Exact": Range_Exact, "TriageNonExistentRegression": TriageNonExistentRegression, "TestWrite": Write, }
SubTests are all the subtests we have for regression.Store.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.