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

Function test_leaf_id_new

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

Source from the content-addressed store, hash-verified

406
407 #[test]
408 fn test_leaf_id_new() {
409 let id = LeafId::new(NodeId::new(42), 5);
410 assert_eq!(id.change_id(), NodeId::new(42));
411 assert_eq!(id.leaf_idx(), 5);
412 }
413
414 #[test]
415 fn test_leaf_id_root() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected