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

Function test_inode_update_hash

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

Source from the content-addressed store, hash-verified

739
740 #[test]
741 fn test_inode_update_hash() {
742 use std::collections::HashSet;
743
744 let mut set = HashSet::new();
745 set.insert(InodeUpdate::add(ChangePosition::new(1), Inode::new(1)));
746 set.insert(InodeUpdate::add(ChangePosition::new(2), Inode::new(2)));
747 set.insert(InodeUpdate::deleted(Inode::new(3)));
748
749 assert_eq!(set.len(), 3);
750 }
751
752 #[test]
753 fn test_inode_update_serialization() {

Callers

nothing calls this directly

Calls 2

deletedFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected