()
| 14 | const defaultTestDBURL = "postgres://e2a:e2a@localhost:5433/e2a_test?sslmode=disable" |
| 15 | |
| 16 | func TestDBURL() string { |
| 17 | dbURL := os.Getenv("E2A_TEST_DATABASE_URL") |
| 18 | if dbURL == "" { |
| 19 | dbURL = defaultTestDBURL |
| 20 | } |
| 21 | return dbURL |
| 22 | } |
| 23 | |
| 24 | func OpenPreparedTestDB(ctx context.Context, dbURL string) (*pgxpool.Pool, error) { |
| 25 | if dbURL == "" { |
no outgoing calls
no test coverage detected