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:997–1004  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

995
996 #[test]
997 fn test_remote_delta_into_pull_delta() {
998 let mut delta = RemoteDelta::in_sync();
999 delta.to_download.push(Node::change("A", "S0"));
1000 delta.to_download.push(Node::change("B", "S1"));
1001
1002 let pull = delta.into_pull_delta(Some(StateResponse::empty()));
1003 assert_eq!(pull.download_count(), 2);
1004 }
1005
1006 #[test]
1007 fn test_remote_delta_into_push_delta_filters_known() {

Callers

nothing calls this directly

Calls 3

changeFunction · 0.85
into_pull_deltaMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected