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

Function test_leaf_id_bytes_roundtrip

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

Source from the content-addressed store, hash-verified

419
420 #[test]
421 fn test_leaf_id_bytes_roundtrip() {
422 let id = LeafId::new(NodeId::new(12345), 99);
423 let bytes = id.to_bytes();
424 let decoded = LeafId::from_bytes(&bytes);
425 assert_eq!(id, decoded);
426 }
427
428 #[test]
429 fn test_leaf_id_ordering() {

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected