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

Function test_leaf_id_eq

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

Source from the content-addressed store, hash-verified

503
504 #[test]
505 fn test_leaf_id_eq() {
506 let a = LeafId::new(NodeId::new(1), 0);
507 let b = LeafId::new(NodeId::new(1), 0);
508 let c = LeafId::new(NodeId::new(1), 1);
509 assert_eq!(a, b);
510 assert_ne!(a, c);
511 }
512}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected