(t *testing.T, handler http.Handler, url string)
| 27 | ) |
| 28 | |
| 29 | func doGet(t *testing.T, handler http.Handler, url string) *httptest.ResponseRecorder { |
| 30 | response := testutil.NewRequest().Get(url).WithAcceptJson().GoWithHTTPHandler(t, handler) |
| 31 | return response.Recorder |
| 32 | } |
| 33 | |
| 34 | func TestPetStore(t *testing.T) { |
| 35 | store := api.NewPetStore() |