()
| 1243 | |
| 1244 | #[test] |
| 1245 | fn test_result_add_file() { |
| 1246 | let mut result = TreeCollectResult::new(); |
| 1247 | let item = TreeItem::file("test.rs", Inode::ROOT, Position::ROOT); |
| 1248 | |
| 1249 | result.add_file(item); |
| 1250 | |
| 1251 | assert_eq!(result.files_count, 1); |
| 1252 | assert_eq!(result.total_items(), 1); |
| 1253 | } |
| 1254 | |
| 1255 | #[test] |
| 1256 | fn test_result_add_directory() { |