()
| 520 | |
| 521 | #[test] |
| 522 | fn valid() { |
| 523 | let tx = SchemaViewer(module_def()); |
| 524 | |
| 525 | for sql in [ |
| 526 | "select str from t", |
| 527 | "select str, arr from t", |
| 528 | "select t.str, arr from t", |
| 529 | "select * from t limit 5", |
| 530 | ] { |
| 531 | let result = parse_and_type_sql(sql, &tx); |
| 532 | assert!(result.is_ok()); |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | #[test] |
| 537 | fn invalid() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…