testing

package
v1.0.23-3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

containers unit tests

Index

Constants

This section is empty.

Variables

View Source
var ExpectedListInfo = []containers.Container{
	{
		Count: 0,
		Bytes: 0,
		Name:  "janeausten",
	},
	{
		Count: 1,
		Bytes: 14,
		Name:  "marktwain",
	},
}

ExpectedListInfo is the result expected from a call to `List` when full info is requested.

View Source
var ExpectedListNames = []string{"janeausten", "marktwain"}

ExpectedListNames is the result expected from a call to `List` when just container names are requested.

Functions

func HandleCreateContainerSuccessfully

func HandleCreateContainerSuccessfully(t *testing.T)

HandleCreateContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Create` response.

func HandleDeleteContainerSuccessfully

func HandleDeleteContainerSuccessfully(t *testing.T)

HandleDeleteContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Delete` response.

func HandleGetContainerSuccessfully

func HandleGetContainerSuccessfully(t *testing.T)

HandleGetContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Get` response.

func HandleListContainerInfoSuccessfully

func HandleListContainerInfoSuccessfully(t *testing.T)

HandleListContainerInfoSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `List` response when full info is requested.

func HandleListContainerNamesSuccessfully

func HandleListContainerNamesSuccessfully(t *testing.T)

HandleListContainerNamesSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `ListNames` response when only container names are requested.

func HandleUpdateContainerSuccessfully

func HandleUpdateContainerSuccessfully(t *testing.T)

HandleUpdateContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Update` response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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