()
| 3122 | |
| 3123 | #[tokio::test] |
| 3124 | async fn run_saves_with_query_results() { |
| 3125 | let mut benchmark = |
| 3126 | parse_benchmark("run\nWITH t AS (SELECT 3 AS value) SELECT value FROM t\n") |
| 3127 | .await |
| 3128 | .expect("benchmark should parse"); |
| 3129 | let ctx = SessionContext::new(); |
| 3130 | |
| 3131 | benchmark.run(&ctx, true).await.expect("run should succeed"); |
| 3132 | |
| 3133 | assert_eq!(formatted_last_results(&benchmark), vec![vec!["3"]]); |
| 3134 | } |
| 3135 | |
| 3136 | #[tokio::test] |
| 3137 | async fn run_only_keeps_last_select_or_with_result() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…