testutils

package
v0.0.0-...-2fcdea6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRequest

func DeleteRequest(t *testing.T, route string) (*http.Request, *httptest.ResponseRecorder)

DeleteRequest creates a delete request

func GetRequest

func GetRequest(t *testing.T, route string) (*http.Request, *httptest.ResponseRecorder)

GetRequest creates a get request

func JSONFromMap

func JSONFromMap(t *testing.T, data map[string]interface{}) []byte

JSONFromMap creates a json representation from a map

func PostRequest

func PostRequest(t *testing.T, route string, data []byte) (*http.Request, *httptest.ResponseRecorder)

PostRequest createa a post request for sending json

Types

This section is empty.

Jump to

Keyboard shortcuts

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