()
| 3038 | |
| 3039 | #[tokio::test] |
| 3040 | async fn assert_reports_row_count_mismatch() { |
| 3041 | let mut benchmark = parse_benchmark( |
| 3042 | r#" |
| 3043 | assert I |
| 3044 | SELECT 1 AS value |
| 3045 | ---- |
| 3046 | 1 |
| 3047 | 2 |
| 3048 | |
| 3049 | run |
| 3050 | SELECT 1; |
| 3051 | "#, |
| 3052 | ) |
| 3053 | .await |
| 3054 | .expect("benchmark should parse"); |
| 3055 | let ctx = SessionContext::new(); |
| 3056 | |
| 3057 | assert_result_error_contains( |
| 3058 | benchmark.assert(&ctx).await, |
| 3059 | "expected 2 rows but got 1", |
| 3060 | ); |
| 3061 | } |
| 3062 | |
| 3063 | #[tokio::test] |
| 3064 | async fn assert_reports_column_count_mismatch() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…