Trait cargo_test_support::TestEnv
source · pub trait TestEnv: Sized {
// Required methods
fn current_dir<S: AsRef<Path>>(self, path: S) -> Self;
fn env<S: AsRef<OsStr>>(self, key: &str, value: S) -> Self;
fn env_remove(self, key: &str) -> Self;
// Provided method
fn test_env(self) -> Self { ... }
}
Expand description
Establish a process’s test environment
Required Methods§
fn current_dir<S: AsRef<Path>>(self, path: S) -> Self
fn env<S: AsRef<OsStr>>(self, key: &str, value: S) -> Self
fn env_remove(self, key: &str) -> Self
Provided Methods§
Object Safety§
This trait is not object safe.