(t *testing.T)
| 473 | } |
| 474 | |
| 475 | func TestConnQueryFailure(t *testing.T) { |
| 476 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
| 477 | _, err := db.Query("select 'foo") |
| 478 | require.Error(t, err) |
| 479 | require.ErrorAs(t, err, new(*pgconn.PgError)) |
| 480 | }) |
| 481 | } |
| 482 | |
| 483 | func TestConnSimpleSlicePassThrough(t *testing.T) { |
| 484 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
nothing calls this directly
no test coverage detected