MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_item_parent_path

Function test_item_parent_path

atomic-core/src/output/repo/tree.rs:1191–1197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1189
1190 #[test]
1191 fn test_item_parent_path() {
1192 let item = TreeItem::file("src/lib/mod.rs", Inode::ROOT, Position::ROOT);
1193 assert_eq!(item.parent_path(), "src/lib");
1194
1195 let root_file = TreeItem::file("Cargo.toml", Inode::ROOT, Position::ROOT);
1196 assert_eq!(root_file.parent_path(), "");
1197 }
1198
1199 #[test]
1200 fn test_item_is_hidden() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected