(t *testing.T)
| 533 | } |
| 534 | |
| 535 | func TestPrepareBadSQLFailure(t *testing.T) { |
| 536 | t.Parallel() |
| 537 | |
| 538 | conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE")) |
| 539 | defer closeConn(t, conn) |
| 540 | |
| 541 | if _, err := conn.Prepare(context.Background(), "badSQL", "select foo"); err == nil { |
| 542 | t.Fatal("Prepare should have failed with syntax error") |
| 543 | } |
| 544 | |
| 545 | ensureConnValid(t, conn) |
| 546 | } |
| 547 | |
| 548 | func TestPrepareIdempotency(t *testing.T) { |
| 549 | t.Parallel() |
nothing calls this directly
no test coverage detected