1 2 3 4 5 6 7 8 9 10 11 12
use std::sync::Mutex; pub static TEST_MUTEX: Mutex<()> = Mutex::new(()); #[macro_export] macro_rules! clear_test_env_vars { ($($var:expr),* $(,)?) => { $( std::env::remove_var($var); )* }; }