()
| 318 | |
| 319 | #[test] |
| 320 | fn extract_plain_aggregate() { |
| 321 | let aggs = |
| 322 | extract_aggregates(&first_expr("SELECT SUM(x) FROM t"), "total", &functions()).unwrap(); |
| 323 | assert_eq!(aggs.len(), 1); |
| 324 | assert_eq!(aggs[0].function, "sum"); |
| 325 | assert_eq!(aggs[0].alias, "total"); |
| 326 | } |
| 327 | |
| 328 | #[test] |
| 329 | fn extract_aggregate_inside_cast() { |
nothing calls this directly
no test coverage detected