Returns the datafusion test data directory, which is by default rooted at `datafusion/core/tests/data`. The default can be overridden by the optional environment variable `DATAFUSION_TEST_DATA` panics when the directory can not be found. Example: ``` let testdata = datafusion_common::test_util::datafusion_test_data(); let csvdata = format!("{}/window_1.csv", testdata); assert!(std::path::PathBu
()
| 210 | /// assert!(std::path::PathBuf::from(csvdata).exists()); |
| 211 | /// ``` |
| 212 | pub fn datafusion_test_data() -> String { |
| 213 | match get_data_dir("DATAFUSION_TEST_DATA", "../../datafusion/core/tests/data") { |
| 214 | Ok(pb) => pb.display().to_string(), |
| 215 | Err(err) => panic!("failed to get arrow data dir: {err}"), |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | /// Returns the arrow test data directory, which is by default stored |
| 220 | /// in a git submodule rooted at `testing/data`. |
no test coverage detected
searching dependent graphs…