Helper function to create a temporary cache manager
()
| 13 | |
| 14 | /// Helper function to create a temporary cache manager |
| 15 | fn create_cache_manager() -> CACacheManager { |
| 16 | let cache_dir = tempfile::tempdir().expect("Failed to create temp dir"); |
| 17 | // Keep the temp dir alive by leaking it - it will be cleaned up when the process exits |
| 18 | // This is acceptable for tests as they are short-lived |
| 19 | let path = cache_dir.path().to_path_buf(); |
| 20 | std::mem::forget(cache_dir); |
| 21 | CACacheManager::new(path, true) |
| 22 | } |
| 23 | |
| 24 | pub(crate) fn build_mock( |
| 25 | cache_control_val: &str, |
no outgoing calls
no test coverage detected