(sql: &str, expected_fn: &str)
| 312 | } |
| 313 | |
| 314 | fn assert_json_fn(sql: &str, expected_fn: &str) { |
| 315 | let expr = select_expr_lowered(sql); |
| 316 | match expr { |
| 317 | SqlExpr::Function { name, args, .. } => { |
| 318 | assert_eq!(name, expected_fn, "wrong function name"); |
| 319 | assert_eq!(args.len(), 2, "expected 2 args"); |
| 320 | } |
| 321 | other => panic!("expected Function, got {other:?}"), |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | #[test] |
| 326 | fn arrow_lowers_to_pg_json_get() { |
no test coverage detected