()
| 3062 | |
| 3063 | #[tokio::test] |
| 3064 | async fn assert_reports_column_count_mismatch() { |
| 3065 | let mut benchmark = parse_benchmark( |
| 3066 | r#" |
| 3067 | assert I |
| 3068 | SELECT 1 AS a, 2 AS b |
| 3069 | ---- |
| 3070 | 1 |
| 3071 | |
| 3072 | run |
| 3073 | SELECT 1; |
| 3074 | "#, |
| 3075 | ) |
| 3076 | .await |
| 3077 | .expect("benchmark should parse"); |
| 3078 | let ctx = SessionContext::new(); |
| 3079 | |
| 3080 | assert_result_error_contains( |
| 3081 | benchmark.assert(&ctx).await, |
| 3082 | "expected 1 columns but got 2", |
| 3083 | ); |
| 3084 | } |
| 3085 | |
| 3086 | #[tokio::test] |
| 3087 | async fn assert_reports_value_mismatch() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…