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

Function test_record_item_equality

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

Source from the content-addressed store, hash-verified

1030
1031 #[test]
1032 fn test_record_item_equality() {
1033 let item1 = RecordItem::new(PathBuf::from("file.txt"), Inode::new(1), Position::ROOT);
1034 let item2 = RecordItem::new(PathBuf::from("file.txt"), Inode::new(1), Position::ROOT);
1035 let item3 = RecordItem::new(PathBuf::from("other.txt"), Inode::new(2), Position::ROOT);
1036
1037 assert_eq!(item1, item2);
1038 assert_ne!(item1, item3);
1039 }
1040
1041 #[test]
1042 fn test_record_item_debug() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected