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

Function TestPostgresTCP

tests/postgres_test.go:60–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

58}
59
60func TestPostgresTCP(t *testing.T) {
61 if testing.Short() {
62 t.Skip("skipping Postgres integration tests")
63 }
64 requirePostgresVars(t)
65 // Prepare the initial arguments
66 args := []string{*postgresConnName}
67 // Add the IP type flag using the helper
68 args = AddIPTypeFlag(args)
69 // Run the test
70 proxyConnTest(t, args, "pgx", postgresDSN())
71}
72
73func TestPostgresUnix(t *testing.T) {
74 if testing.Short() {

Callers

nothing calls this directly

Calls 4

requirePostgresVarsFunction · 0.85
AddIPTypeFlagFunction · 0.85
proxyConnTestFunction · 0.85
postgresDSNFunction · 0.85

Tested by

no test coverage detected