()
| 788 | |
| 789 | #[test] |
| 790 | fn test_list_files() { |
| 791 | let wc = Memory::new(); |
| 792 | wc.add_file("a.txt", b""); |
| 793 | wc.add_file("b/c.txt", b""); |
| 794 | wc.add_directory("empty_dir"); |
| 795 | |
| 796 | let files = wc.list_files(); |
| 797 | assert_eq!(files.len(), 2); |
| 798 | assert!(files.contains(&"a.txt".to_string())); |
| 799 | assert!(files.contains(&"b/c.txt".to_string())); |
| 800 | } |
| 801 | |
| 802 | #[test] |
| 803 | fn test_get_inode() { |
nothing calls this directly
no test coverage detected