Home | History | Annotate | Download | only in http

Lines Matching full:errorf

45 			return nil, fmt.Errorf("Read: n=0 with err=nil")
51 return nil, fmt.Errorf("Read: n=%d err=%#v after EOF", n, err)
82 t.Errorf("Incorrect page body (did not begin with User-agent): %q", s)
116 t.Errorf("expected method %q; got %q", "GET", tr.req.Method)
119 t.Errorf("expected URL %q; got %q", url, tr.req.URL.String())
122 t.Errorf("expected non-nil request Header")
137 t.Errorf("got method %q, want %q", tr.req.Method, "POST")
140 t.Errorf("got URL %q, want %q", tr.req.URL.String(), url)
149 t.Errorf("got ContentLength %d, want %d", g, e)
166 t.Errorf("got method %q, want %q", tr.req.Method, "POST")
169 t.Errorf("got URL %q, want %q", tr.req.URL.String(), urlStr)
175 t.Errorf("got Content-Type %q, want %q", g, e)
184 t.Errorf("got ContentLength %d, want %d", g, e)
191 t.Errorf("got body %q, want %q or %q", g, expectedBody, expectedBody1)
203 t.Errorf("on request ?n=7, expected referer of %q; got %q", e, g)
217 t.Errorf("with default client Get, expected error %q, got %q", e, g)
223 t.Errorf("with default client Head, expected error %q, got %q", e, g)
230 t.Errorf("with default client Do, expected error %q, got %q", e, g)
246 t.Errorf("with custom client, expected error %q, got %q", e, g)
249 t.Errorf("expected final url to end in /?n=15; got url %q", finalUrl)
252 t.Errorf("expected lastVia to have contained %d elements; got %d", e, g)
258 t.Errorf("with redirects forbidden, expected a *url.Error with our 'no redirects allowed' error inside; got %#v (%q)", err, err)
265 t.Errorf("no Location header in Response")
305 t.Errorf("POST %s: status code = %d; want %d", tt.suffix, res.StatusCode, tt.want)
313 t.Errorf("Log differs.\n Got: %q\nWant: %q", got, want)
409 t.Errorf("Expected %d cookies, got %d", len(expected), len(given))
420 t.Errorf("Missing cookie %v", ec)
463 t.Errorf("Got Jar calls:\n%s\nWant:\n%s", got, want)
561 t.Errorf("Get request did %d Write calls, want 1", writes)
570 t.Errorf("Post request did %d Write calls, want 1", writes)
596 t.Errorf("insecure=%v: got unexpected err=%v", insecure, err)
606 t.Errorf("expected an error log message containing 'TLS handshake error'; got %q", v)
609 t.Errorf("timeout waiting for logged error")
623 t.Errorf("wanted error mentioning RequestURI; got error: %v", err)
647 t.Errorf("expected client to set ServerName 127.0.0.1, got: %q", r.TLS.ServerName)
673 t.Errorf("wanted error mentioning 127.0.0.1 and badserver; got error: %v", err)
678 t.Errorf("expected an error log message containing 'TLS handshake error'; got %q", v)
681 t.Errorf("timeout waiting for logged error")
738 t.Errorf("TLS Cipher Suite = %d; want %d", got, want)
766 t.Errorf("Content-Length = %d; want %d", res.ContentLength, tt.want)
773 t.Errorf("Unexpected content: %q", bs)
792 t.Errorf("Invalid Authorization header. Got %q, wanted %q", s, expected)
795 t.Errorf("Invalid auth %q", auth)
822 t.Errorf("got method %q, want %q", tr.req.Method, "GET")
825 t.Errorf("got URL %q, want %q", tr.req.URL.String(), url)
839 t.Errorf("Invalid Authorization header. Got %q, wanted %q", s, expected)
842 t.Errorf("Invalid auth %q", auth)
862 t.Errorf("got method %q, want %q", tr.req.Method, "GET")
865 t.Errorf("got URL %q, want %q", tr.req.URL.String(), url)
879 t.Errorf("Invalid Authorization header. Got %q, wanted %q", s, expected)
882 t.Errorf("Invalid auth %q", auth)
948 t.Errorf("error value from ReadAll was %T; expected some net.Error", err)
950 t.Errorf("net.Error.Timeout = false; want true")
953 t.Errorf("error string = %q; missing timeout substring", got)
956 t.Errorf("timeout after %v waiting for timeout of %v", failTime, timeout)
998 t.Errorf("error string = %q; missing timeout substring", got)
1065 t.Errorf("Server reading request body: %v", err)
1068 t.Errorf("Server read request body %q; want foo", slurp)
1116 t.Errorf("Response trailers = %#v; want %#v", res.Trailer, want)
1152 t.Errorf("refererForURL(%q, %q) = %q; want %q", tt.lastReq, tt.newReq, r, tt.want)