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

Function test_inode_update_add

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

Source from the content-addressed store, hash-verified

703
704 #[test]
705 fn test_inode_update_add() {
706 let pos = ChangePosition::new(100);
707 let inode = Inode::new(42);
708 let update = InodeUpdate::add(pos, inode);
709
710 assert!(update.is_add());
711 assert!(!update.is_deleted());
712 assert_eq!(update.inode(), inode);
713 assert_eq!(update.position(), Some(pos));
714 }
715
716 #[test]
717 fn test_inode_update_deleted() {

Callers

nothing calls this directly

Calls 1

addFunction · 0.50

Tested by

no test coverage detected