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

Function test_branch_id_hash

atomic-core/src/crdt/ids.rs:496–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

494
495 #[test]
496 fn test_branch_id_hash() {
497 use std::collections::HashMap;
498 let mut map = HashMap::new();
499 let id = BranchId::new(NodeId::new(1), 0);
500 map.insert(id, "test");
501 assert_eq!(map.get(&id), Some(&"test"));
502 }
503
504 #[test]
505 fn test_leaf_id_eq() {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected