(t testing.TB, testDB string)
| 12 | ) |
| 13 | |
| 14 | func RunPostgres(t testing.TB, testDB string) string { |
| 15 | url := dockertest.RunTestPostgreSQLWithVersion(t, "16") |
| 16 | if err := createDB(t, url, testDB); err != nil { |
| 17 | t.Fatal(err) |
| 18 | } |
| 19 | return withDbName(url, testDB) |
| 20 | } |
no test coverage detected