MCPcopy
hub / github.com/ory/keto / RunPostgres

Function RunPostgres

internal/x/dbx/dsn_postgres.go:14–20  ·  view source on GitHub ↗
(t testing.TB, testDB string)

Source from the content-addressed store, hash-verified

12)
13
14func 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}

Callers 1

GetDSNsFunction · 0.70

Calls 2

createDBFunction · 0.85
withDbNameFunction · 0.85

Tested by

no test coverage detected