Create a temporary JSON file and return (TempDir, path)
(content: &str)
| 58 | |
| 59 | /// Create a temporary JSON file and return (TempDir, path) |
| 60 | fn create_temp_json(content: &str) -> (tempfile::TempDir, String) { |
| 61 | let tmp_dir = tempfile::TempDir::new().unwrap(); |
| 62 | let path = tmp_dir.path().join("test.json"); |
| 63 | std::fs::write(&path, content).unwrap(); |
| 64 | (tmp_dir, path.to_string_lossy().to_string()) |
| 65 | } |
| 66 | |
| 67 | /// Infer schema from JSON array format file |
| 68 | async fn infer_json_array_schema( |
no test coverage detected
searching dependent graphs…