(t string)
| 718 | var timezoneRE = regexp.MustCompile(`(?m)^> Time-Zone: .+`) |
| 719 | |
| 720 | func normalizeVerboseLog(t string) string { |
| 721 | t = requestAtRE.ReplaceAllString(t, "* Request at <time>") |
| 722 | t = hostWithPortRE.ReplaceAllString(t, "<host>:<port>") |
| 723 | t = dateRE.ReplaceAllString(t, "< Date: <time>") |
| 724 | t = durationRE.ReplaceAllString(t, "* Request took <duration>") |
| 725 | t = timezoneRE.ReplaceAllString(t, "> Time-Zone: <timezone>") |
| 726 | return t |
| 727 | } |
| 728 | |
| 729 | func TestNewCachedHTTPClientWithStatuses(t *testing.T) { |
| 730 | tests := []struct { |
no outgoing calls
no test coverage detected