test

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 10 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 ClearTestStorage

func ClearTestStorage(t *testing.T)

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 CreateTestStorage(t *testing.T)

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 added in v0.3.0

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

func SetupTestStorage

func SetupTestStorage(t *testing.T)

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