pub struct TestEnv { /* private fields */ }Expand description
In-memory environment + optional platform directory overrides for tests.
Build with TestEnv::new or TestEnv::with_os_vars, then chain
with_*_dir helpers for platform fallbacks.
Implementations§
Source§impl TestEnv
impl TestEnv
pub fn with_config_dir(self, value: impl Into<PathBuf>) -> Self
pub fn with_data_dir(self, value: impl Into<PathBuf>) -> Self
pub fn with_cache_dir(self, value: impl Into<PathBuf>) -> Self
pub fn with_home_dir(self, value: impl Into<PathBuf>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestEnv
impl RefUnwindSafe for TestEnv
impl Send for TestEnv
impl Sync for TestEnv
impl Unpin for TestEnv
impl UnsafeUnpin for TestEnv
impl UnwindSafe for TestEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more