()
| 708 | /// Test cleanup_on_error function. |
| 709 | #[test] |
| 710 | fn test_cleanup_on_error() { |
| 711 | let temp = tempdir().unwrap(); |
| 712 | let target = temp.path().join("failed-clone"); |
| 713 | |
| 714 | std::fs::create_dir(&target).unwrap(); |
| 715 | assert!(target.exists()); |
| 716 | |
| 717 | cleanup_on_error(&target); |
| 718 | |
| 719 | assert!(!target.exists()); |
| 720 | } |
| 721 | |
| 722 | /// Test cleanup_on_error with non-existent path. |
| 723 | #[test] |
nothing calls this directly
no test coverage detected