1 2 3 4 5 6 7 8 9 10 11 12
use super::*; #[test] fn kept_temporary_directory_transfers_cleanup_responsibility() { let parent = crate::test_os::persistent_scratch_fixture(); let directory = private_tempdir_in("kept-", parent.path()).unwrap(); let path = directory.keep().unwrap(); assert!(path.is_dir()); assert!(is_private_dir(&path).unwrap()); remove_tree(&path).unwrap(); assert!(!path.exists()); }