()
| 978 | |
| 979 | #[test] |
| 980 | fn test_remove_path_recursive() { |
| 981 | let wc = Memory::new(); |
| 982 | wc.add_file("dir/a.txt", b""); |
| 983 | wc.add_file("dir/sub/b.txt", b""); |
| 984 | |
| 985 | wc.remove_path("dir", true).unwrap(); |
| 986 | assert!(!wc.exists("dir")); |
| 987 | assert!(!wc.exists("dir/a.txt")); |
| 988 | assert!(!wc.exists("dir/sub")); |
| 989 | assert!(!wc.exists("dir/sub/b.txt")); |
| 990 | } |
| 991 | |
| 992 | #[test] |
| 993 | fn test_rename_file() { |
nothing calls this directly
no test coverage detected