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

Function test_mark_inode_recorded

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

Source from the content-addressed store, hash-verified

723
724 #[test]
725 fn test_mark_inode_recorded() {
726 let mut builder = RecordBuilder::new();
727 let inode = Inode::new(42);
728 let position = Position::ROOT.to_option();
729
730 assert!(!builder.is_inode_recorded(&inode));
731
732 builder.mark_inode_recorded(inode, position);
733
734 assert!(builder.is_inode_recorded(&inode));
735 assert_eq!(builder.get_recorded_inode(&inode), Some(position));
736 }
737
738 #[test]
739 fn test_get_recorded_inode_not_found() {

Callers

nothing calls this directly

Calls 2

mark_inode_recordedMethod · 0.80
to_optionMethod · 0.45

Tested by

no test coverage detected