()
| 633 | /// Test finding specific local-only changes. |
| 634 | #[test] |
| 635 | fn test_find_local_only_changes() { |
| 636 | let local_entries = vec![ |
| 637 | create_test_history_entry(b"shared", 0), |
| 638 | create_test_history_entry(b"local1", 1), |
| 639 | create_test_history_entry(b"local2", 2), |
| 640 | ]; |
| 641 | let remote_entries = vec![create_test_changelist_entry(b"shared", 0, false)]; |
| 642 | |
| 643 | let local_only = find_local_only_changes(&local_entries, &remote_entries); |
| 644 | |
| 645 | assert_eq!(local_only.len(), 2); |
| 646 | assert!(local_only.contains(&Hash::of(b"local1").to_base32())); |
| 647 | assert!(local_only.contains(&Hash::of(b"local2").to_base32())); |
| 648 | } |
| 649 | |
| 650 | // Error Conversion Tests |
| 651 |
nothing calls this directly
no test coverage detected