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

Function test_remote_delta_into_pull_delta

atomic-remote/src/sync.rs:958–965  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

956
957 #[test]
958 fn test_remote_delta_into_pull_delta() {
959 let mut delta = RemoteDelta::in_sync();
960 delta.to_download.push(Node::change("A", "S0"));
961 delta.to_download.push(Node::change("B", "S1"));
962
963 let pull = delta.into_pull_delta(Some(StateResponse::empty()));
964 assert_eq!(pull.download_count(), 2);
965 }
966
967 #[test]
968 fn test_remote_delta_into_push_delta_filters_known() {

Callers

nothing calls this directly

Calls 2

into_pull_deltaMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected