(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func TestSQLOpenFromPool(t *testing.T) { |
| 172 | pool, err := pgxpool.New(context.Background(), os.Getenv("PGX_TEST_DATABASE")) |
| 173 | require.NoError(t, err) |
| 174 | t.Cleanup(pool.Close) |
| 175 | |
| 176 | db := stdlib.OpenDBFromPool(pool) |
| 177 | ensureDBValid(t, db) |
| 178 | |
| 179 | db.Close() |
| 180 | } |
| 181 | |
| 182 | func TestNormalLifeCycle(t *testing.T) { |
| 183 | db := openDB(t) |
nothing calls this directly
no test coverage detected