(path: &Path)
| 1971 | } |
| 1972 | |
| 1973 | fn reset_dir(path: &Path) -> Result<()> { |
| 1974 | if path.exists() { |
| 1975 | fs::remove_dir_all(path).with_context(|| format!("remove {}", path.display()))?; |
| 1976 | } |
| 1977 | fs::create_dir_all(path).with_context(|| format!("create {}", path.display()))?; |
| 1978 | Ok(()) |
| 1979 | } |
| 1980 | |
| 1981 | fn copy_runtime_file_if_exists(src: PathBuf, dest: PathBuf) -> Result<()> { |
| 1982 | if !src.exists() { |
no outgoing calls
no test coverage detected