func TestProxyServer(t *testing.T, proxyMux *http.ServeMux) (*Client, func()) {
	// override client.httpClient to skip TLS verification
	httpClient, proxy, serverClose := testhelper.SetupTestClientAndServer(proxyMux)
	client, err := New(proxy.URL)
	if err != nil {
		t.Fatal(err)
	}
	client.httpClient = httpClient
	return client, serverClose
}
// TestProxyServer starts serving proxyMux locally. It returns a client to the
// server and a function to shut down the server.
TestProxyServer starts serving proxyMux locally. It returns a client to the
server and a function to shut down the server.
// TestProxyServer starts serving proxyMux locally . It returns a client to the // server and a function to shut down the server .
func TestProxyServer(t *testing.T, proxyMux *http.ServeMux) (*Client, func()) {
	httpClient, proxy, serverClose := testhelper.SetupTestClientAndServer(proxyMux)
	client, err := New(proxy.URL)
	if err != nil {
		t.Fatal(err)
	}
	client.httpClient = httpClient
	return client, serverClose
}
func TestProxyServer ( t * testing . T , proxyMux * http . ServeMux ) ( * Client , func ( ) ) { httpClient , proxy , serverClose := testhelper . SetupTestClientAndServer ( proxyMux ) client , err := New ( proxy . URL ) if err != nil { t . Fatal ( err ) } client . httpClient = httpClient return client , serverClose }
TestProxyServer starts serving proxyMux locally.
TestProxyServer starts serving proxyMux locally .
// override client.httpClient to skip TLS verification