Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockHttpRequest ¶
func MockHttpRequest(method, url string, body io.Reader, params url.Values, header http.Header) *http.Request
MockHttpRequest - helper, to build a request in tests
e.g. req := tracrtest.MockHttpRequest("GET", "/example/", nil, url.Values{ "blah": {"blahblah"}, }, header)
nb: Note the url.Values extra braces, as a key can have multiple values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.