func SetupTestProxy(t *testing.T, modules []*TestModule) (*Client, func()) {
	t.Helper()
	var cleaned []*TestModule
	for _, m := range modules {
		cleaned = append(cleaned, cleanTestModule(t, m))
	}
	return TestProxyServer(t, TestProxy(cleaned))
}
// SetupTestProxy creates a fake module proxy for testing using the given test
// version information. If modules is nil, it will default to hosting the
// modules in the testdata directory.
//
// It returns a function for tearing down the proxy after the test is completed
// and a Client for interacting with the test proxy.
SetupTestProxy creates a fake module proxy for testing using the given test
version information. If modules is nil, it will default to hosting the
modules in the testdata directory.

It returns a function for tearing down the proxy after the test is completed
and a Client for interacting with the test proxy.
// SetupTestProxy creates a fake module proxy for testing using the given test // version information . If modules is nil it will default to hosting the // modules in the testdata directory . // // It returns a function for tearing down the proxy after the test is completed // and a Client for interacting with the test proxy .
func SetupTestProxy(t *testing.T, modules []*TestModule) (*Client, func()) {
	t.Helper()
	var cleaned []*TestModule
	for _, m := range modules {
		cleaned = append(cleaned, cleanTestModule(t, m))
	}
	return TestProxyServer(t, TestProxy(cleaned))
}
func SetupTestProxy ( t * testing . T , modules [ ] * TestModule ) ( * Client , func ( ) ) { t . Helper ( ) var cleaned [ ] * TestModule for _ , m := range modules { cleaned = append ( cleaned , cleanTestModule ( t , m ) ) } return TestProxyServer ( t , TestProxy ( cleaned ) ) }
SetupTestProxy creates a fake module proxy for testing using the given test
version information.
SetupTestProxy creates a fake module proxy for testing using the given test version information .