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

Function verify_rejects_missing_result_file

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

Source from the content-addressed store, hash-verified

3329
3330 #[tokio::test]
3331 async fn verify_rejects_missing_result_file() {
3332 let temp_dir = tempdir().expect("failed to create benchmark test directory");
3333 let missing_path = temp_dir.path().join("missing_result.csv");
3334 let mut benchmark = parse_benchmark(&format!(
3335 "result {}\n\nrun\nSELECT 1 AS value\n",
3336 missing_path.display()
3337 ))
3338 .await
3339 .expect("benchmark should parse");
3340 let ctx = SessionContext::new();
3341
3342 benchmark.run(&ctx, true).await.expect("run should succeed");
3343
3344 assert_result_error_contains(benchmark.verify(&ctx).await, "missing_result.csv");
3345 }
3346
3347 #[tokio::test]
3348 async fn verify_rejects_malformed_result_file() {

Callers

nothing calls this directly

Calls 7

parse_benchmarkFunction · 0.85
newFunction · 0.85
joinMethod · 0.45
pathMethod · 0.45
runMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…