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

Function test_record_item_root

atomic-core/src/record/context.rs:1122–1131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1120
1121 #[test]
1122 fn test_record_item_root() {
1123 let item = RecordItem::root();
1124
1125 assert!(item.is_root());
1126 assert!(item.full_path.is_empty());
1127 assert!(item.basename.is_empty());
1128 assert_eq!(item.inode, Inode::ROOT);
1129 assert!(item.is_directory);
1130 assert!(item.parent_position.is_some());
1131 }
1132
1133 #[test]
1134 fn test_record_item_with_parent_position() {

Callers

nothing calls this directly

Calls 1

rootFunction · 0.85

Tested by

no test coverage detected