(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func keyfile(t *testing.T) string { |
| 62 | path := os.Getenv("GOOGLE_APPLICATION_CREDENTIALS") |
| 63 | if path == "" { |
| 64 | t.Skip("GOOGLE_APPLICATION_CREDENTIALS not set") |
| 65 | } |
| 66 | creds, err := os.ReadFile(path) |
| 67 | if err != nil { |
| 68 | t.Fatalf("io.ReadAll(): %v", err) |
| 69 | } |
| 70 | return string(creds) |
| 71 | } |
| 72 | func proxyConnTestWithReady(t *testing.T, args []string, driver, dsn string, ready func() error) { |
| 73 | ctx, cancel := context.WithTimeout(context.Background(), connTestTimeout) |
| 74 | defer cancel() |
no outgoing calls
no test coverage detected