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

Function test_item_file

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected