MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / createTempDir

Function createTempDir

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

Source from the content-addressed store, hash-verified

115}
116
117func createTempDir(t *testing.T) (string, func()) {
118 testDir, err := os.MkdirTemp("", "*")
119 if err != nil {
120 t.Fatalf("failed to create temp dir: %v", err)
121 }
122 return testDir, func() {
123 if err := os.RemoveAll(testDir); err != nil {
124 t.Logf("failed to cleanup temp dir: %v", err)
125 }
126 }
127}
128
129func TestPostgresImpersonation(t *testing.T) {
130 if testing.Short() {

Callers 6

TestMySQLUnixFunction · 0.70
TestMySQLMCPUnixFunction · 0.70
TestPostgresFUSEConnectFunction · 0.70
testFUSEFunction · 0.70
TestPostgresUnixFunction · 0.70
TestPostgresMCPUnixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected