func CheckResponse(t *testing.T, w *httptest.ResponseRecorder, wantStatus int, wantHeaders http.Header, wantBody string) (ok bool)
CheckResponse checks that the http response matches expectations,
and calls t.Error if not.
func NewRequest(t testing.TB, method, url string, body io.Reader) *http.Request
NewRequest is like http.NewRequest, but calls t.Fatal on error.
Package mockhttp imports 5 packages (graph).
Tools for package owners.
This is an inactive package (no imports and no commits in at least two years).