()
| 3015 | |
| 3016 | #[tokio::test] |
| 3017 | async fn assert_propagates_query_failures() { |
| 3018 | let mut benchmark = parse_benchmark( |
| 3019 | r#" |
| 3020 | assert I |
| 3021 | SELECT * FROM missing_assert_table |
| 3022 | ---- |
| 3023 | 1 |
| 3024 | |
| 3025 | run |
| 3026 | SELECT 1; |
| 3027 | "#, |
| 3028 | ) |
| 3029 | .await |
| 3030 | .expect("benchmark should parse"); |
| 3031 | let ctx = SessionContext::new(); |
| 3032 | |
| 3033 | assert_result_error_contains( |
| 3034 | benchmark.assert(&ctx).await, |
| 3035 | "missing_assert_table", |
| 3036 | ); |
| 3037 | } |
| 3038 | |
| 3039 | #[tokio::test] |
| 3040 | async fn assert_reports_row_count_mismatch() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…