()
| 810 | /// Test CleanupGuard disable. |
| 811 | #[test] |
| 812 | fn test_cleanup_guard_disable() { |
| 813 | let guard = CleanupGuard::new(PathBuf::from("/tmp/test")); |
| 814 | guard.disable(); |
| 815 | // Can't check is_disabled() after disable() since it consumes self |
| 816 | } |
| 817 | |
| 818 | /// Test CleanupGuard actually cleans up on drop. |
| 819 | #[test] |