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

Function test_add_inode_update

atomic-core/src/record/builder.rs:711–722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

709
710 #[test]
711 fn test_add_inode_update() {
712 let mut builder = RecordBuilder::new();
713
714 let hunk_index = builder.add_hunk(create_test_file_add_hunk());
715 let update = InodeUpdate::add(ChangePosition::new(0), Inode::new(42));
716
717 builder.add_inode_update(hunk_index, update);
718
719 let recorded = builder.finish();
720 assert_eq!(recorded.updatables().len(), 1);
721 assert!(recorded.updatables().contains_key(&hunk_index));
722 }
723
724 #[test]
725 fn test_mark_inode_recorded() {

Callers

nothing calls this directly

Calls 4

add_inode_updateMethod · 0.80
add_hunkMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected