//! Test utilities shared across unit and integration tests
/// RAII guard for environment variables that automatically restores original value on drop.
///
/// This ensures env vars are restored to their original state even if tests panic,
/// preventing test pollution. Use this when tests need to temporarily set environment variables.