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

Function test_find_local_only_changes

atomic-cli/src/commands/pull/helpers.rs:635–648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

find_local_only_changesFunction · 0.85

Tested by

no test coverage detected