MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / proxyConnTest

Function proxyConnTest

tests/connection_test.go:102–104  ·  view source on GitHub ↗

proxyConnTest is a test helper to verify the proxy works with a basic connectivity test.

(t *testing.T, args []string, driver, dsn string)

Source from the content-addressed store, hash-verified

100
101// proxyConnTest is a test helper to verify the proxy works with a basic connectivity test.
102func proxyConnTest(t *testing.T, args []string, driver, dsn string) {
103 proxyConnTestWithReady(t, args, driver, dsn, func() error { return nil })
104}
105
106// testHealthCheck verifies that when a proxy client serves the given instance,
107// the readiness endpoint serves http.StatusOK.

Callers 15

TestMySQLTCPFunction · 0.85
TestMySQLUnixFunction · 0.85
TestMySQLMCPUnixFunction · 0.85
TestMySQLImpersonationFunction · 0.85
TestMySQLAuthenticationFunction · 0.85
TestMySQLGcloudAuthFunction · 0.85
TestSQLServerTCPFunction · 0.85
TestSQLServerGcloudAuthFunction · 0.85
TestPostgresTCPFunction · 0.85
TestPostgresUnixFunction · 0.85

Calls 1

proxyConnTestWithReadyFunction · 0.85

Tested by

no test coverage detected