(temp_dir: &TempDir, name: &str, contents: &str)
| 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(); |
no test coverage detected
searching dependent graphs…