(client: PsqlClient, ty: &ProductType, rows: Vec<ProductValue>, expected: &str)
| 504 | } |
| 505 | |
| 506 | fn expect_psql_table(client: PsqlClient, ty: &ProductType, rows: Vec<ProductValue>, expected: &str) { |
| 507 | let table = build_table(client, ty, rows.into_iter().map(Ok::<_, ()>)) |
| 508 | .unwrap() |
| 509 | .to_string(); |
| 510 | let mut table = table.split('\n').map(|x| x.trim_end()).join("\n"); |
| 511 | table.insert(0, '\n'); |
| 512 | assert_eq!(expected, table); |
| 513 | } |
| 514 | |
| 515 | // Verify the output of `sql` matches the inputs that return true for [`AlgebraicType::is_special()`] |
| 516 | #[test] |
searching dependent graphs…