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

Function test_remote_state_insert_out_of_order

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

Source from the content-addressed store, hash-verified

853
854 #[test]
855 fn test_remote_state_insert_out_of_order() {
856 let mut cache = RemoteState::empty();
857 cache.insert(5, Node::change("E", "S5"));
858 cache.insert(2, Node::change("B", "S2"));
859 cache.insert(8, Node::change("H", "S8"));
860
861 assert_eq!(cache.last_sequence(), Some(8));
862 assert_eq!(cache.last_merkle_state(), Some("S8"));
863 }
864
865 #[test]
866 fn test_remote_state_truncate_from() {

Callers

nothing calls this directly

Calls 2

changeFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected