()
| 2550 | |
| 2551 | #[tokio::test] |
| 2552 | async fn parser_rejects_missing_query_file() { |
| 2553 | let temp_dir = tempdir().expect("failed to create benchmark test directory"); |
| 2554 | let missing_path = temp_dir.path().join("missing.sql"); |
| 2555 | let benchmark_path = write_test_file( |
| 2556 | &temp_dir, |
| 2557 | "missing_query_file.benchmark", |
| 2558 | &format!("run {}\n", missing_path.display()), |
| 2559 | ); |
| 2560 | |
| 2561 | let result = parse_benchmark_file(&benchmark_path).await; |
| 2562 | |
| 2563 | assert_result_error_contains(result, "Failed to read query file"); |
| 2564 | } |
| 2565 | |
| 2566 | #[tokio::test] |
| 2567 | async fn parser_rejects_template_with_invalid_parameter_assignment() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…