Documentation ¶
Index ¶
- func DeleteRequest(t *testing.T, route string) (*http.Request, *httptest.ResponseRecorder)
- func GetRequest(t *testing.T, route string) (*http.Request, *httptest.ResponseRecorder)
- func JSONFromMap(t *testing.T, data map[string]interface{}) []byte
- func PostRequest(t *testing.T, route string, data []byte) (*http.Request, *httptest.ResponseRecorder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRequest ¶
DeleteRequest creates a delete request
func GetRequest ¶
GetRequest creates a get request
func JSONFromMap ¶
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.
Click to show internal directories.
Click to hide internal directories.