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

Function test_item_filename

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected