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

Function test_branch_id_ordering

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

Source from the content-addressed store, hash-verified

377
378 #[test]
379 fn test_branch_id_ordering() {
380 let a = BranchId::new(NodeId::new(1), 0);
381 let b = BranchId::new(NodeId::new(1), 1);
382 let c = BranchId::new(NodeId::new(2), 0);
383
384 assert!(a < b);
385 assert!(b < c);
386 }
387
388 #[test]
389 fn test_branch_id_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected