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

Function test_record_item_root

atomic-core/src/record/item.rs:944–952  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

942
943 #[test]
944 fn test_record_item_root() {
945 let item = RecordItem::root();
946
947 assert!(item.is_root());
948 assert_eq!(item.inode(), Inode::ROOT);
949 assert_eq!(item.parent_inode(), Inode::ROOT);
950 assert!(item.is_dir());
951 assert_eq!(item.basename(), "");
952 }
953
954 #[test]
955 fn test_record_item_with_details() {

Callers

nothing calls this directly

Calls 1

rootFunction · 0.85

Tested by

no test coverage detected