()
| 1180 | |
| 1181 | #[test] |
| 1182 | fn test_item_filename() { |
| 1183 | let item = TreeItem::file("src/lib/mod.rs", Inode::ROOT, Position::ROOT); |
| 1184 | assert_eq!(item.filename(), "mod.rs"); |
| 1185 | |
| 1186 | let root_file = TreeItem::file("Cargo.toml", Inode::ROOT, Position::ROOT); |
| 1187 | assert_eq!(root_file.filename(), "Cargo.toml"); |
| 1188 | } |
| 1189 | |
| 1190 | #[test] |
| 1191 | fn test_item_parent_path() { |
nothing calls this directly
no outgoing calls
no test coverage detected