(path: &Path)
| 228 | } |
| 229 | |
| 230 | fn canonicalize_test_dir(path: &Path) -> PathBuf { |
| 231 | fs::create_dir_all(path).unwrap_or_else(|err| { |
| 232 | panic!( |
| 233 | "failed to create test directory '{}': {err}", |
| 234 | path.display() |
| 235 | ) |
| 236 | }); |
| 237 | path.canonicalize().unwrap_or_else(|err| { |
| 238 | panic!( |
| 239 | "failed to canonicalize test directory '{}': {err}", |
| 240 | path.display() |
| 241 | ) |
| 242 | }) |
| 243 | } |
| 244 | |
| 245 | fn canonicalize_test_db_path(path: &Path) -> PathBuf { |
| 246 | let parent = path |
no outgoing calls
no test coverage detected