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

Function test_inode_update_deleted

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

Source from the content-addressed store, hash-verified

715
716 #[test]
717 fn test_inode_update_deleted() {
718 let inode = Inode::new(42);
719 let update = InodeUpdate::deleted(inode);
720
721 assert!(!update.is_add());
722 assert!(update.is_deleted());
723 assert_eq!(update.inode(), inode);
724 assert_eq!(update.position(), None);
725 }
726
727 #[test]
728 fn test_inode_update_equality() {

Callers

nothing calls this directly

Calls 1

deletedFunction · 0.85

Tested by

no test coverage detected