(key: &'static str, value: &str)
| 772 | impl EnvVarGuard { |
| 773 | #[allow(unsafe_code)] |
| 774 | fn set(key: &'static str, value: &str) -> Self { |
| 775 | let original = std::env::var(key).ok(); |
| 776 | // SAFETY: tests serialize environment mutation with ENV_LOCK. |
| 777 | unsafe { std::env::set_var(key, value) }; |
| 778 | Self { key, original } |
| 779 | } |
| 780 | |
| 781 | #[allow(unsafe_code)] |
| 782 | fn remove(key: &'static str) -> Self { |
no outgoing calls
no test coverage detected