()
| 474 | |
| 475 | #[test] |
| 476 | fn test_remove_recursive() { |
| 477 | let (dir, fs) = temp_fs(); |
| 478 | std::fs::create_dir_all(dir.path().join("a/b/c")).unwrap(); |
| 479 | std::fs::write(dir.path().join("a/b/c/file.txt"), "").unwrap(); |
| 480 | std::fs::write(dir.path().join("a/b/other.txt"), "").unwrap(); |
| 481 | |
| 482 | fs.remove_path("a", true).unwrap(); |
| 483 | assert!(!dir.path().join("a").exists()); |
| 484 | } |
| 485 | |
| 486 | #[test] |
| 487 | fn test_remove_not_found() { |
nothing calls this directly
no test coverage detected