regressiontest

package
v0.0.0-...-2887efe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

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,
	"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.

func Write

func Write(t *testing.T, store regression.Store)

Write tests that the implementation of the regression.Store interface can bulk write Regressions.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL