https://github.com/jackc/pgx/issues/1654
(t *testing.T)
| 45 | |
| 46 | // https://github.com/jackc/pgx/issues/1654 |
| 47 | func TestRowScannerErrorIsFatalToRows(t *testing.T) { |
| 48 | t.Parallel() |
| 49 | |
| 50 | defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) { |
| 51 | s := testErrRowScanner("foo") |
| 52 | err := conn.QueryRow(ctx, "select 'Adam' as name, 72 as height").Scan(&s) |
| 53 | require.EqualError(t, err, "foo") |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | func TestForEachRow(t *testing.T) { |
| 58 | t.Parallel() |
nothing calls this directly
no test coverage detected