test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package test contains functionality that should be available to all unit tests (which live in separate packages).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAllTestStorage

func ClearAllTestStorage()

func ClearTestStorage

func ClearTestStorage(t *testing.T, storage string)

ClearTestStorage removes any output from previously run tests.

func CreateTestStorage

func CreateTestStorage(t *testing.T) string

func FindTestdataFolder

func FindTestdataFolder(t *testing.T) string

FindTestdataFolder finds the "testdata" folder which is in . or .. depending on which package is calling us.

func PrettyPrint

func PrettyPrint(t *testing.T, ob interface{}) string

func SetTestStorageDir

func SetTestStorageDir(dir string)

func SetupTestStorage

func SetupTestStorage(t *testing.T) string

func StartBadHttpServer

func StartBadHttpServer(count int, timeout time.Duration, success string)

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.

Jump to

Keyboard shortcuts

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