1 2 3 4 5 6 7 8 9 10 11 12 13
#[cfg(test)] mod tests { use strut_core::AppProfile; #[test] fn dev() { // When unsafe { std::env::set_var("APP_PROFILE", "dev") } // Then assert!(matches!(AppProfile::active(), AppProfile::Dev)); } }