MCPcopy Create free account
hub / github.com/apache/datafusion / parser_rejects_missing_query_file

Function parser_rejects_missing_query_file

benchmarks/src/sql_benchmark.rs:2552–2564  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

write_test_fileFunction · 0.85
parse_benchmark_fileFunction · 0.85
joinMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…