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

Function test_remote_state_clear

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

Source from the content-addressed store, hash-verified

894
895 #[test]
896 fn test_remote_state_clear() {
897 let mut cache = RemoteState::empty();
898 cache.insert(0, Node::change("A", "S0"));
899 cache.insert(1, Node::change("B", "S1"));
900
901 cache.clear();
902
903 assert!(cache.is_empty());
904 assert_eq!(cache.last_sequence(), None);
905 assert_eq!(cache.last_merkle_state(), None);
906 }
907
908 #[test]
909 fn test_remote_state_entries_from() {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.65
changeFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected