()
| 650 | /// Test CleanupGuard disable. |
| 651 | #[test] |
| 652 | fn test_cleanup_guard_disable() { |
| 653 | let guard = CleanupGuard::new(PathBuf::from("/tmp/test")); |
| 654 | guard.disable(); |
| 655 | // Can't check is_disabled() after disable() since it consumes self |
| 656 | } |
| 657 | |
| 658 | /// Test CleanupGuard actually cleans up on drop. |
| 659 | #[test] |