MCPcopy Create free account
hub / github.com/apecloud/myduckserver / NormalizeRows

Function NormalizeRows

pgtest/framework.go:76–82  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
76func 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.

Callers 1

ReadRowsFunction · 0.85

Calls 1

NormalizeRowFunction · 0.85

Tested by

no test coverage detected