()
| 1162 | |
| 1163 | #[test] |
| 1164 | fn test_item_directory() { |
| 1165 | let item = TreeItem::directory("src/lib", Inode::ROOT); |
| 1166 | |
| 1167 | assert_eq!(item.path, "src/lib"); |
| 1168 | assert!(item.is_directory); |
| 1169 | assert!(!item.is_file()); |
| 1170 | assert_eq!(item.depth, 2); |
| 1171 | } |
| 1172 | |
| 1173 | #[test] |
| 1174 | fn test_item_with_metadata() { |
nothing calls this directly
no outgoing calls
no test coverage detected