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

Function parser_rejects_missing_template_file

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

Source from the content-addressed store, hash-verified

2632
2633 #[tokio::test]
2634 async fn parser_rejects_missing_template_file() {
2635 let temp_dir = tempdir().expect("failed to create benchmark test directory");
2636 let missing_path = temp_dir.path().join("missing_template.benchmark");
2637 let benchmark_path = write_test_file(
2638 &temp_dir,
2639 "missing_template_driver.benchmark",
2640 &format!("template {}\n", missing_path.display()),
2641 );
2642
2643 let result = parse_benchmark_file(&benchmark_path).await;
2644
2645 assert_result_error_contains(result, "No such file");
2646 }
2647
2648 #[tokio::test]
2649 async fn parser_uses_metadata_values_as_replacements() {

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…