(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func httpClient(t *testing.T) *http.Client { |
| 229 | t.Helper() |
| 230 | |
| 231 | cli := &http.Client{ |
| 232 | Jar: &loggingCookieJar{t: t, cookies: map[string][]*http.Cookie{}}, |
| 233 | CheckRedirect: func(req *http.Request, via []*http.Request) error { |
| 234 | return http.ErrUseLastResponse |
| 235 | }, |
| 236 | Transport: &userAgentRoundTripper{ |
| 237 | rt: http.DefaultTransport, |
| 238 | }, |
| 239 | } |
| 240 | |
| 241 | return cli |
| 242 | } |
| 243 | |
| 244 | func TestLoadPolicies(t *testing.T) { |
| 245 | for _, fname := range []string{"botPolicies.yaml"} { |
no outgoing calls
no test coverage detected