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

Function test_branch_id_new

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

Source from the content-addressed store, hash-verified

356
357 #[test]
358 fn test_branch_id_new() {
359 let id = BranchId::new(NodeId::new(42), 5);
360 assert_eq!(id.change_id(), NodeId::new(42));
361 assert_eq!(id.branch_idx(), 5);
362 }
363
364 #[test]
365 fn test_branch_id_root() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected