Documentation ¶
Overview ¶
Package test contains functionality that should be available to all unit tests (which live in separate packages).
Index ¶
- func ClearAllTestStorage()
- func ClearTestStorage(t *testing.T, storage string)
- func CreateTestStorage(t *testing.T) string
- func FindTestdataFolder(t *testing.T) string
- func PrettyPrint(t *testing.T, ob interface{}) string
- func SetTestStorageDir(dir string)
- func SetupTestStorage(t *testing.T) string
- func StartBadHttpServer(count int, timeout time.Duration, success string)
- func StartSchemeManagerHttpServer()
- func StopBadHttpServer()
- func StopSchemeManagerHttpServer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAllTestStorage ¶
func ClearAllTestStorage()
func ClearTestStorage ¶
ClearTestStorage removes any output from previously run tests.
func CreateTestStorage ¶
func FindTestdataFolder ¶
FindTestdataFolder finds the "testdata" folder which is in . or .. depending on which package is calling us.
func PrettyPrint ¶
func SetTestStorageDir ¶
func SetTestStorageDir(dir string)
func SetupTestStorage ¶
func StartBadHttpServer ¶
StartBadHttpServer starts an HTTP server that times out and returns 500 on the first few times.
func StartSchemeManagerHttpServer ¶
func StartSchemeManagerHttpServer()
func StopBadHttpServer ¶
func StopBadHttpServer()
func StopSchemeManagerHttpServer ¶
func StopSchemeManagerHttpServer()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.