• Home
  • Raw
  • Download

Lines Matching refs:got

31 	if got, want := res.status, http.StatusOK; got != want {
32 t.Errorf("status = %v; want %v", got, want)
52 if got, want := res.status, http.StatusOK; got != want {
53 t.Errorf("status = %v; want %v", got, want)
76 if got, want := res.status, http.StatusNotImplemented; got != want {
77 t.Errorf("status = %v; want %v", got, want)
104 if got, want := resp.StatusCode, http.StatusBadRequest; got != want {
105 t.Errorf("status: %v; want %v", got, want)
146 if got, want := res.status, http.StatusOK; got != want {
147 t.Errorf("status = %v; want %v", got, want)
152 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
153 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
174 if got, want := res.status, http.StatusOK; got != want {
175 t.Errorf("status = %v; want %v", got, want)
180 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
181 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
197 if got, want := res.status, http.StatusOK; got != want {
198 t.Errorf("status: %v; want %v", got, want)
214 if got, want := res.status, http.StatusOK; got != want {
215 t.Errorf("status: %v; want %v", got, want)
218 if got, want := res.connClose, true; got != want {
219 t.Errorf("res.connClose: %v; want %v", got, want)
246 if got, want := res.status, http.StatusOK; got != want {
247 t.Errorf("status: %v; want %v", got, want)
249 if got, want := res.header.Get("request-host"), st.backendHost; got != want {
250 t.Errorf("request-host: %v; want %v", got, want)
275 if got, want := resp.StatusCode, http.StatusBadRequest; got != want {
276 t.Errorf("status: %v; want %v", got, want)
301 if got, want := resp.StatusCode, http.StatusBadRequest; got != want {
302 t.Errorf("status: %v; want %v", got, want)
327 if got, want := resp.StatusCode, http.StatusBadRequest; got != want {
328 t.Errorf("status: %v; want %v", got, want)
354 if got, want := resp.StatusCode, http.StatusOK; got != want {
355 t.Errorf("status: %v; want %v", got, want)
357 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
358 t.Errorf("request-host: %v; want %v", got, want)
385 if got, want := resp.StatusCode, http.StatusOK; got != want {
386 t.Errorf("status: %v; want %v", got, want)
388 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
389 t.Errorf("request-host: %v; want %v", got, want)
408 if got, want := r.Trailer.Get("foo"), "bar"; got != want {
409 t.Errorf("r.Trailer.Get(foo): %v; want %v", got, want)
426 if got, want := res.status, http.StatusOK; got != want {
427 t.Errorf("res.status: %v; want %v", got, want)
453 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
454 t.Errorf("status: %v; want %v", got, want)
476 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
477 t.Errorf("status: %v; want %v", got, want)
504 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
505 t.Errorf("status: %v; want %v", got, want)
526 if got, want := res.body, content; !bytes.Equal(got, want) {
527 t.Errorf("echo: %q; want %q", got, want)
537 if got, want := r.Header.Get("User-Agent"), "mruby"; got != want {
538 t.Errorf("User-Agent = %v; want %v", got, want)
552 if got, want := res.status, http.StatusOK; got != want {
553 t.Errorf("status = %v; want %v", got, want)
576 if got, want := res.status, http.StatusNotFound; got != want {
577 t.Errorf("status = %v; want %v", got, want)
587 if got, want := res.header.Get(tt.k), tt.v; got != want {
588 t.Errorf("%v = %v; want %v", tt.k, got, want)
592 if got, want := string(res.body), "Hello World from req"; got != want {
593 t.Errorf("body = %v; want %v", got, want)
620 if got, want := resp.StatusCode, http.StatusNotFound; got != want {
621 t.Errorf("status: %v; want %v", got, want)
633 if got, want := resp.Header.Get(tt.k), tt.v; got != want {
634 t.Errorf("%v = %v; want %v", tt.k, got, want)
656 if got, want := resp.StatusCode, http.StatusNotFound; got != want {
657 t.Errorf("status: %v; want %v", got, want)
683 if got, want := res.status, http.StatusOK; got != want {
684 t.Errorf("status = %v; want %v", got, want)
687 if got, want := res.header.Get("alpha"), "bravo"; got != want {
688 t.Errorf("alpha = %v; want %v", got, want)
708 if got, want := res.status, http.StatusNotFound; got != want {
709 t.Errorf("status = %v; want %v", got, want)
719 if got, want := res.header.Get(tt.k), tt.v; got != want {
720 t.Errorf("%v = %v; want %v", tt.k, got, want)
724 if got, want := string(res.body), "Hello World from resp"; got != want {
725 t.Errorf("body = %v; want %v", got, want)
745 if got, want := res.status, http.StatusPermanentRedirect; got != want {
746 t.Errorf("status = %v; want %v", got, want)
748 if got, want := res.header.Get("location"), "https://127.0.0.1/"; got != want {
749 t.Errorf("location: %v; want %v", got, want)
773 if got, want := res.status, http.StatusPermanentRedirect; got != want {
774 t.Errorf("status = %v; want %v", got, want)
776 if got, want := res.header.Get("location"), "https://127.0.0.1:8443/foo?bar"; got != want {
777 t.Errorf("location: %v; want %v", got, want)
794 if got, want := res.status, http.StatusOK; got != want {
795 t.Errorf("res.status: %v; want %v", got, want)
805 if got, want := res.status, http.StatusOK; got != want {
806 t.Errorf("res.status: %v; want %v", got, want)
834 if got, want := resp.StatusCode, http.StatusNotFound; got != want {
835 t.Errorf("status: %v; want %v", got, want)
853 if got, want := resp.StatusCode, http.StatusOK; got != want {
854 t.Errorf("status: %v; want %v", got, want)
906 if got, want := resp.StatusCode, http.StatusBadRequest; got != want {
907 t.Errorf("status: %v; want %v", got, want)
934 if got, want := resp.StatusCode, http.StatusOK; got != want {
935 t.Errorf("status: %v; want %v", got, want)
937 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
938 t.Errorf("request-host: %v; want %v", got, want)
966 if got, want := resp.StatusCode, http.StatusOK; got != want {
967 t.Errorf("status: %v; want %v", got, want)
969 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
970 t.Errorf("request-host: %v; want %v", got, want)
982 if got, want := r.Header.Get("Cookie"), "alpha; bravo; charlie"; got != want {
983 t.Errorf("Cookie: %v; want %v", got, want)
999 if got, want := res.status, http.StatusOK; got != want {
1000 t.Errorf("status: %v; want %v", got, want)
1010 if got, want := r.Header.Get("Via"), "1.1 nghttpx"; got != want {
1011 t.Errorf("Via: %v; want %v", got, want)
1024 if got, want := res.header.Get("Via"), "2 nghttpx"; got != want {
1025 t.Errorf("Via: %v; want %v", got, want)
1035 if got, want := r.Header.Get("Via"), "foo, 1.1 nghttpx"; got != want {
1036 t.Errorf("Via: %v; want %v", got, want)
1053 if got, want := res.header.Get("Via"), "bar, 2 nghttpx"; got != want {
1054 t.Errorf("Via: %v; want %v", got, want)
1064 if got, want := r.Header.Get("Via"), "foo"; got != want {
1065 t.Errorf("Via: %v; want %v", got, want)
1082 if got, want := res.header.Get("Via"), "bar"; got != want {
1083 t.Errorf("Via: %v; want %v", got, want)
1109 if got, want := res.status, http.StatusNotFound; got != want {
1110 t.Errorf("status = %v; want %v", got, want)
1120 if got, want := res.header.Get(tt.k), tt.v; got != want {
1121 t.Errorf("%v = %v; want %v", tt.k, got, want)
1125 if got, want := string(res.body), "Hello World from req"; got != want {
1126 t.Errorf("body = %v; want %v", got, want)
1149 if got, want := res.status, http.StatusNotFound; got != want {
1150 t.Errorf("status = %v; want %v", got, want)
1160 if got, want := res.header.Get(tt.k), tt.v; got != want {
1161 t.Errorf("%v = %v; want %v", tt.k, got, want)
1165 if got, want := string(res.body), "Hello World from resp"; got != want {
1166 t.Errorf("body = %v; want %v", got, want)
1176 if got, want := r.Header.Get("te"), "trailers"; got != want {
1177 t.Errorf("te: %v; want %v", got, want)
1193 if got, want := res.status, http.StatusOK; got != want {
1194 t.Errorf("status: %v; want %v", got, want)
1223 if got, want := res.status, http.StatusOK; got != want {
1224 t.Errorf("res.status: %v; want %v", got, want)
1232 if got, want := apiResp.Status, "Success"; got != want {
1233 t.Errorf("apiResp.Status: %v; want %v", got, want)
1235 if got, want := apiResp.Code, 200; got != want {
1236 t.Errorf("apiResp.Status: %v; want %v", got, want)
1265 if got, want := res.status, http.StatusOK; got != want {
1266 t.Errorf("res.status: %v; want %v", got, want)
1274 if got, want := apiResp.Status, "Success"; got != want {
1275 t.Errorf("apiResp.Status: %v; want %v", got, want)
1277 if got, want := apiResp.Code, 200; got != want {
1278 t.Errorf("apiResp.Status: %v; want %v", got, want)
1307 if got, want := res.status, http.StatusMethodNotAllowed; got != want {
1308 t.Errorf("res.status: %v; want %v", got, want)
1316 if got, want := apiResp.Status, "Failure"; got != want {
1317 t.Errorf("apiResp.Status: %v; want %v", got, want)
1319 if got, want := apiResp.Code, 405; got != want {
1320 t.Errorf("apiResp.Status: %v; want %v", got, want)
1344 if got, want := res.status, http.StatusOK; got != want {
1345 t.Errorf("res.status: %v; want = %v", got, want)
1355 if got, want := apiResp.Status, "Success"; got != want {
1356 t.Errorf("apiResp.Status: %v; want %v", got, want)
1358 if got, want := apiResp.Code, 200; got != want {
1359 t.Errorf("apiResp.Status: %v; want %v", got, want)
1361 if got, want := apiResp.Data["configRevision"], json.Number("0"); got != want {
1362 t.Errorf(`apiResp.Data["configRevision"]: %v %t; want %v`, got, got, want)
1391 if got, want := res.status, http.StatusNotFound; got != want {
1392 t.Errorf("res.status: %v; want %v", got, want)
1400 if got, want := apiResp.Status, "Failure"; got != want {
1401 t.Errorf("apiResp.Status: %v; want %v", got, want)
1403 if got, want := apiResp.Code, 404; got != want {
1404 t.Errorf("apiResp.Status: %v; want %v", got, want)
1427 if got, want := res.status, http.StatusOK; got != want {
1428 t.Errorf("res.status: %v; want %v", got, want)
1456 if got, want := resp.StatusCode, http.StatusNotFound; got != want {
1457 t.Errorf("status: %v; want %v", got, want)