()
| 496 | |
| 497 | #[test] |
| 498 | fn test_remove_recursive() { |
| 499 | let (dir, fs) = temp_fs(); |
| 500 | std::fs::create_dir_all(dir.path().join("a/b/c")).unwrap(); |
| 501 | std::fs::write(dir.path().join("a/b/c/file.txt"), "").unwrap(); |
| 502 | std::fs::write(dir.path().join("a/b/other.txt"), "").unwrap(); |
| 503 | |
| 504 | fs.remove_path("a", true).unwrap(); |
| 505 | assert!(!dir.path().join("a").exists()); |
| 506 | } |
| 507 | |
| 508 | #[test] |
| 509 | fn test_remove_not_found() { |
nothing calls this directly
no test coverage detected