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

Function test_item_directory

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

Source from the content-addressed store, hash-verified

1162
1163 #[test]
1164 fn test_item_directory() {
1165 let item = TreeItem::directory("src/lib", Inode::ROOT);
1166
1167 assert_eq!(item.path, "src/lib");
1168 assert!(item.is_directory);
1169 assert!(!item.is_file());
1170 assert_eq!(item.depth, 2);
1171 }
1172
1173 #[test]
1174 fn test_item_with_metadata() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected