(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func TestPrepared(t *testing.T) { |
| 126 | t.Parallel() |
| 127 | |
| 128 | uri := local.PostgreSQL(t, []string{"schema"}) |
| 129 | db, err := sql.Open("postgres", uri) |
| 130 | if err != nil { |
| 131 | t.Fatalf("%s: %s", uri, err) |
| 132 | } |
| 133 | defer db.Close() |
| 134 | |
| 135 | q, err := Prepare(context.Background(), db) |
| 136 | if err != nil { |
| 137 | t.Fatal(err) |
| 138 | } |
| 139 | |
| 140 | runOnDeckQueries(t, q) |
| 141 | } |
| 142 | |
| 143 | func TestQueries(t *testing.T) { |
| 144 | t.Parallel() |
nothing calls this directly
no test coverage detected