func TestParseTimeout(t *testing.T) { … } func TestWithRequestDeadline(t *testing.T) { … } func TestWithRequestDeadlineWithClock(t *testing.T) { … } func TestWithRequestDeadlineWithInvalidTimeoutIsAudited(t *testing.T) { … } func TestWithRequestDeadlineWithPanic(t *testing.T) { … } func TestWithRequestDeadlineWithRequestTimesOut(t *testing.T) { … } func TestWithFailedRequestAudit(t *testing.T) { … } func newRequest(t *testing.T, requestURL string) *http.Request { … } func message(err error) string { … } func newSerializer() runtime.NegotiatedSerializer { … } type fakeRequestResolver … func (r fakeRequestResolver) NewRequestInfo(req *http.Request) (*request.RequestInfo, error) { … } func deadline(r *http.Request) (time.Duration, bool) { … }