pub fn replace_provider(provider: Arc<dyn FsProvider>) -> ProviderGuardExpand description
Temporarily replace the active provider and return a guard that restores the previous provider when dropped. Useful for tests that need to install a mock filesystem without permanently mutating global state.