Render peeked rows as deterministic golden text: each row's datums joined by spaces, with the rows sorted so the output is independent of arrangement order.
(rows: &[Row])
| 1172 | /// Render peeked rows as deterministic golden text: each row's datums joined by |
| 1173 | /// spaces, with the rows sorted so the output is independent of arrangement order. |
| 1174 | fn render_rows(rows: &[Row]) -> String { |
| 1175 | let mut lines: Vec<String> = rows |
| 1176 | .iter() |
| 1177 | .map(|row| { |
| 1178 | row.unpack() |
| 1179 | .iter() |
| 1180 | .map(|datum| datum.to_string()) |
| 1181 | .collect::<Vec<_>>() |
| 1182 | .join(" ") |
| 1183 | }) |
| 1184 | .collect(); |
| 1185 | lines.sort(); |
| 1186 | lines.join("\n") |
| 1187 | } |
| 1188 | |
| 1189 | /// Convert an optional `up_to` timestamp into a sink's exclusive upper antichain; |
| 1190 | /// `None` is the empty antichain (no bound — the sink runs indefinitely). |