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

Function test_inode_update_equality

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

Source from the content-addressed store, hash-verified

726
727 #[test]
728 fn test_inode_update_equality() {
729 let pos = ChangePosition::new(100);
730 let inode = Inode::new(42);
731
732 let update1 = InodeUpdate::add(pos, inode);
733 let update2 = InodeUpdate::add(pos, inode);
734 let update3 = InodeUpdate::add(ChangePosition::new(200), inode);
735
736 assert_eq!(update1, update2);
737 assert_ne!(update1, update3);
738 }
739
740 #[test]
741 fn test_inode_update_hash() {

Callers

nothing calls this directly

Calls 1

addFunction · 0.50

Tested by

no test coverage detected