()
| 3085 | |
| 3086 | #[tokio::test] |
| 3087 | async fn assert_reports_value_mismatch() { |
| 3088 | let mut benchmark = parse_benchmark( |
| 3089 | r#" |
| 3090 | assert I |
| 3091 | SELECT 1 AS value |
| 3092 | ---- |
| 3093 | 2 |
| 3094 | |
| 3095 | run |
| 3096 | SELECT 1; |
| 3097 | "#, |
| 3098 | ) |
| 3099 | .await |
| 3100 | .expect("benchmark should parse"); |
| 3101 | let ctx = SessionContext::new(); |
| 3102 | |
| 3103 | assert_result_error_contains( |
| 3104 | benchmark.assert(&ctx).await, |
| 3105 | "expected value \"2\" but got value \"1\"", |
| 3106 | ); |
| 3107 | } |
| 3108 | |
| 3109 | // Run tests cover result buffering and physical-plan expectations. |
| 3110 |
nothing calls this directly
no test coverage detected
searching dependent graphs…