NormalizeRows normalizes each value's type within each row, as the tests only want to compare values. Returns a new set of rows in the same order.
(fds []pgconn.FieldDescription, rows []sql.Row, normalize bool)
| 74 | // NormalizeRows normalizes each value's type within each row, as the tests only want to compare values. Returns a new |
| 75 | // set of rows in the same order. |
| 76 | func NormalizeRows(fds []pgconn.FieldDescription, rows []sql.Row, normalize bool) []sql.Row { |
| 77 | newRows := make([]sql.Row, len(rows)) |
| 78 | for i := range rows { |
| 79 | newRows[i] = NormalizeRow(fds, rows[i], normalize) |
| 80 | } |
| 81 | return newRows |
| 82 | } |
| 83 | |
| 84 | // NormalizeRow normalizes each value's type, as the tests only want to compare values. |
| 85 | // Returns a new row. |
no test coverage detected