• Home
  • Raw
  • Download

Lines Matching refs:got

30 	if got, want := res.status, http.StatusOK; got != want {
31 t.Errorf("status = %v; want %v", got, want)
70 if got, want := buf, body; !bytes.Equal(got, want) {
71 t.Fatalf("buf = %v; want %v", got, want)
86 if got, want := res.status, http.StatusOK; got != want {
87 t.Errorf("res.status: %v; want %v", got, want)
96 if got, want := r.Header.Get("Via"), "3 nghttpx"; got != want {
97 t.Errorf("Via: %v; want %v", got, want)
111 if got, want := res.header.Get("Via"), "1.1 nghttpx"; got != want {
112 t.Errorf("Via: %v; want %v", got, want)
121 if got, want := r.Header.Get("Via"), "foo, 3 nghttpx"; got != want {
122 t.Errorf("Via: %v; want %v", got, want)
140 if got, want := res.header.Get("Via"), "bar, 1.1 nghttpx"; got != want {
141 t.Errorf("Via: %v; want %v", got, want)
151 if got, want := r.Header.Get("Via"), "foo"; got != want {
152 t.Errorf("Via: %v; want %v", got, want)
170 if got, want := res.header.Get("Via"), "bar"; got != want {
171 t.Errorf("Via: %v; want %v", got, want)
217 if got, want := res.status, http.StatusOK; got != want {
218 t.Errorf("status = %v; want %v", got, want)
240 if got, want := res.status, http.StatusOK; got != want {
241 t.Errorf("status = %v; want %v", got, want)
246 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
247 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
274 if got, want := res.status, http.StatusNotFound; got != want {
275 t.Errorf("status = %v; want %v", got, want)
285 if got, want := res.header.Get(tt.k), tt.v; got != want {
286 t.Errorf("%v = %v; want %v", tt.k, got, want)
290 if got, want := string(res.body), "Hello World from req"; got != want {
291 t.Errorf("body = %v; want %v", got, want)
315 if got, want := res.status, http.StatusNotFound; got != want {
316 t.Errorf("status = %v; want %v", got, want)
326 if got, want := res.header.Get(tt.k), tt.v; got != want {
327 t.Errorf("%v = %v; want %v", tt.k, got, want)
331 if got, want := string(res.body), "Hello World from resp"; got != want {
332 t.Errorf("body = %v; want %v", got, want)
356 if got, want := res.status, http.StatusNotFound; got != want {
357 t.Errorf("res.status: %v; want %v", got, want)