MCPcopy Index your code
hub / github.com/imroc/req / TestSetProxyURL

Function TestSetProxyURL

client_test.go:168–173  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

166}
167
168func TestSetProxyURL(t *testing.T) {
169 c := tc().SetProxyURL("http://dummy.proxy.local")
170 u, err := c.Proxy(nil)
171 tests.AssertNoError(t, err)
172 tests.AssertEqual(t, "http://dummy.proxy.local", u.String())
173}
174
175func TestSetProxy(t *testing.T) {
176 u, _ := url.Parse("http://dummy.proxy.local")

Callers

nothing calls this directly

Calls 5

AssertNoErrorFunction · 0.92
AssertEqualFunction · 0.92
tcFunction · 0.85
SetProxyURLMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…