(t *testing.T)
| 40 | ) |
| 41 | |
| 42 | func requirePostgresVars(t *testing.T) { |
| 43 | switch "" { |
| 44 | case *postgresConnName: |
| 45 | t.Fatal("'postgres_conn_name' not set") |
| 46 | case *postgresUser: |
| 47 | t.Fatal("'postgres_user' not set") |
| 48 | case *postgresPass: |
| 49 | t.Fatal("'postgres_pass' not set") |
| 50 | case *postgresDB: |
| 51 | t.Fatal("'postgres_db' not set") |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func postgresDSN() string { |
| 56 | return fmt.Sprintf("host=localhost user=%s password=%s database=%s sslmode=disable", |
no outgoing calls
no test coverage detected