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

Function write_test_file

benchmarks/src/sql_benchmark.rs:1563–1567  ·  view source on GitHub ↗
(temp_dir: &TempDir, name: &str, contents: &str)

Source from the content-addressed store, hash-verified

1561 use tempfile::{TempDir, tempdir};
1562
1563 fn write_test_file(temp_dir: &TempDir, name: &str, contents: &str) -> PathBuf {
1564 let path = temp_dir.path().join(name);
1565 fs::write(&path, contents).expect("failed to write benchmark test file");
1566 path
1567 }
1568
1569 async fn parse_benchmark_file(path: &Path) -> Result<SqlBenchmark> {
1570 let ctx = SessionContext::new();

Calls 2

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…