 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
containers unit tests
Index ¶
- Variables
- func HandleBulkDeleteSuccessfully(t *testing.T)
- func HandleCreateContainerSuccessfully(t *testing.T)
- func HandleDeleteContainerSuccessfully(t *testing.T)
- func HandleGetContainerSuccessfully(t *testing.T)
- func HandleListContainerInfoSuccessfully(t *testing.T)
- func HandleListContainerNamesSuccessfully(t *testing.T)
- func HandleUpdateContainerSuccessfully(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
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.
var ExpectedListNames = []string{"janeausten", "marktwain"}
    ExpectedListNames is the result expected from a call to `List` when just container names are requested.
Functions ¶
func HandleBulkDeleteSuccessfully ¶
HandleBulkDeleteSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `Delete` response.
func HandleCreateContainerSuccessfully ¶
HandleCreateContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Create` response.
func HandleDeleteContainerSuccessfully ¶
HandleDeleteContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Delete` response.
func HandleGetContainerSuccessfully ¶
HandleGetContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Get` response.
func HandleListContainerInfoSuccessfully ¶
HandleListContainerInfoSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `List` response when full info is requested.
func HandleListContainerNamesSuccessfully ¶
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 ¶
HandleUpdateContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Update` response.
Types ¶
This section is empty.