Documentation ¶
Overview ¶
Package test contains functionality that should be available to all unit tests (which live in separate packages).
Index ¶
- func ClearTestStorage(t *testing.T)
- func CreateTestStorage(t *testing.T)
- func FindTestdataFolder(t *testing.T) string
- func SetupTestStorage(t *testing.T)
- 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 ClearTestStorage ¶
ClearTestStorage removes any output from previously run tests to ensure a clean state; some of the tests don't like it when there is existing state in storage.
func CreateTestStorage ¶
func FindTestdataFolder ¶
FindTestdataFolder finds the "testdata" folder which is in . or .. depending on which package is calling us.
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.