(&self)
| 127 | } |
| 128 | |
| 129 | pub fn current_dir(&self) -> Result<PathBuf, io::Error> { |
| 130 | use inner::Inner; |
| 131 | match &self.0 { |
| 132 | Inner::Real => std::env::current_dir(), |
| 133 | Inner::Fake(fake) => Ok(fake.lock().unwrap().cwd.clone()), |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | pub fn set_current_dir_for_test(&self, path: PathBuf) { |
| 138 | use inner::Inner; |
no test coverage detected