()
| 1151 | |
| 1152 | #[test] |
| 1153 | fn test_item_file() { |
| 1154 | let item = TreeItem::file("src/main.rs", Inode::ROOT, Position::ROOT); |
| 1155 | |
| 1156 | assert_eq!(item.path, "src/main.rs"); |
| 1157 | assert_eq!(item.inode, Inode::ROOT); |
| 1158 | assert!(!item.is_directory); |
| 1159 | assert!(item.is_file()); |
| 1160 | assert_eq!(item.depth, 2); |
| 1161 | } |
| 1162 | |
| 1163 | #[test] |
| 1164 | fn test_item_directory() { |
nothing calls this directly
no outgoing calls
no test coverage detected