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

Function test_recorded_take_updatables

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

Source from the content-addressed store, hash-verified

916
917 #[test]
918 fn test_recorded_take_updatables() {
919 let mut builder = RecordBuilder::new();
920 builder.add_hunk(create_test_file_add_hunk());
921 builder.add_inode_update(0, InodeUpdate::add(ChangePosition::new(0), Inode::new(42)));
922
923 let recorded = builder.finish();
924 let updatables = recorded.take_updatables();
925
926 assert_eq!(updatables.len(), 1);
927 assert!(updatables.contains_key(&0));
928 }
929
930 #[test]
931 fn test_recorded_into_parts() {

Callers

nothing calls this directly

Calls 5

add_inode_updateMethod · 0.80
take_updatablesMethod · 0.80
add_hunkMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected