(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func TestSetProxy(t *testing.T) { |
| 176 | u, _ := url.Parse("http://dummy.proxy.local") |
| 177 | proxy := http.ProxyURL(u) |
| 178 | c := tc().SetProxy(proxy) |
| 179 | uu, err := c.Proxy(nil) |
| 180 | tests.AssertNoError(t, err) |
| 181 | tests.AssertEqual(t, u.String(), uu.String()) |
| 182 | } |
| 183 | |
| 184 | func TestSetCommonContentType(t *testing.T) { |
| 185 | c := tc().SetCommonContentType(header.JsonContentType) |
nothing calls this directly
no test coverage detected
searching dependent graphs…